Talk to your Minecraft Paper server using bash, screen and logs.
Bashcraft is a lightweight bash library that allows you to interact with your Minecraft Paper server via screen sessions and log outputs.
Not everything needs to be a complex Java plugin with numerous dependencies. Sometimes, you just need a simple way to get the player count or send a message to everyone on the server using crontab. Bashcraft provides a simple and straightforward solution for these tasks without requiring any installation or non-standard Unix dependencies.
Just source Bashcraft in your bash script and send any Minecraft commands to your Minecraft Paper screen.
Bashcraft will automatically read the log output and process it for you.
- Automatic Screen Detection: Automatically detects any screen running a Minecraft Paper server
- Send Commands: Easily send commands to your Minecraft Paper server
- Read Output: Automatically read and process the log output from the server
- Wrapped Functions: Get going quickly with wrapped functions for common Minecraft commands
- Clone the repository
git clone https://github.com/hezkore/bashcraft.git
- Source the script in your bash script
source bashcraft.sh
Check out the examples
directory to see how to use Bashcraft.
- Most wrapper functions expect the command to execute successfully. A message will display if they get stuck waiting for a response from the server.