A modification-free API for Minecraft utilizing log parsing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Tyler 8c4dff3fc5 Only log, don't fatally exit 4 months ago
commands Major updates/patches, functionality, api 1 year ago
docker Pass in arguments from entrypoint.sh 4 months ago
events Move to event loop, prettify warps, add delay to warp with damage counter 4 months ago
rcon Move to event loop, prettify warps, add delay to warp with damage counter 4 months ago
scripting Only log, don't fatally exit 4 months ago
scripts Move to event loop, prettify warps, add delay to warp with damage counter 4 months ago
.drone.yml Major updates/patches, functionality, api 1 year ago
.gitignore Major updates/patches, functionality, api 1 year ago
Dockerfile Add entrypoint, -dir parameter 1 year ago
README.md first commit 3 years ago
config.go first commit 3 years ago
go.mod Pass in arguments from entrypoint.sh 4 months ago
go.sum Move to event loop, prettify warps, add delay to warp with damage counter 4 months ago
main.go Move to event loop, prettify warps, add delay to warp with damage counter 4 months ago
parser.go Move to event loop, prettify warps, add delay to warp with damage counter 4 months ago
parser_test.go Major updates/patches, functionality, api 1 year ago
scripting.go Move to event loop, prettify warps, add delay to warp with damage counter 4 months ago

README.md

ResidentSleeper

A plugin-less, mod-less sleep voting system using log parsing, only available on Linux.

Why

Plugins exist that let you define a certain percentage of users that need to sleep, but they're plugins. They don't work on snapshots/etc.

How

Log files are generated by the Minecraft server under logs/latest.log, which can be read in a fashion similar to tail -F to constantly receive updates. Commands are then executed via RCON that's connected using a configuration parser.

Usage

Requirements: Linux, RCON

Use supervisord or similar to run the program as your Minecraft user, with the flag -dir /path/to/server.

The following configuration values are required in server.properties:

rcon.port=25575
rcon.password=password
enable-rcon=true