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.
|
1 year ago | |
---|---|---|
commands | 2 years ago | |
docker | 1 year ago | |
events | 1 year ago | |
rcon | 1 year ago | |
scripting | 1 year ago | |
scripts | 1 year ago | |
.drone.yml | 2 years ago | |
.gitignore | 2 years ago | |
Dockerfile | 2 years ago | |
README.md | 3 years ago | |
config.go | 3 years ago | |
go.mod | 1 year ago | |
go.sum | 1 year ago | |
main.go | 1 year ago | |
parser.go | 1 year ago | |
parser_test.go | 2 years ago | |
scripting.go | 1 year 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