Skip to content

Talk to your Minecraft Paper server using bash, screen and logs

Notifications You must be signed in to change notification settings

Hezkore/bashcraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bashcraft

Talk to your Minecraft Paper server using bash, screen and logs.

What, Why, How?

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.

Features

  • 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

Usage

  1. Clone the repository git clone https://github.com/hezkore/bashcraft.git
  2. Source the script in your bash script source bashcraft.sh

Done!

Check out the examples directory to see how to use Bashcraft.

Known issues

  • Most wrapper functions expect the command to execute successfully. A message will display if they get stuck waiting for a response from the server.

About

Talk to your Minecraft Paper server using bash, screen and logs

Topics

Resources

Stars

Watchers

Forks

Languages