* You can now restart the server when the TPS or the MSPT reaches a specific amount
* You can run a list of commands when the server is restarting (you can even do different things instead of restarting)
* You can send message to everyone who has specific permission to warn them that something triggered
Code (YAML):
check-every-seconds: 3
restart-at-gb: 30.5
# Checking current restart-at-tps: -1.0
# Checking last 5 seconds restart-at-mspt: -1.0
# Check last 10 seconds # -1.0 is to disable ^^^ restart-delay-seconds: 5
# {seconds} is a placeholder for the variable above ^^^ # Leave the messages clear ("") to send nothing restart-message: "&eRestarting the server in &c{seconds} &eseconds" permission-message: "&c{TYPE} reached his limit!"# Use TYPE for Memory/TPS/MSPT and {type} for memory/tps/mspt message-permission: "amr.msg"# The permission that the player need to get the message above ^^^ on-trigger-commands: -
"restart"
# Please don't change the value of the config version config-version: 1