RAMAutoRestart icon

RAMAutoRestart -----

Auto-restart your server when it hits a specific ram/tps/mspt amount




Minor fix
----------, Mar 19, 2023

/amr memory - get server memory
/amr tps - get server tps
/amr restart <delay> - restart the server
/amr cancel - cancel a restart
----------, Mar 19, 2023

config fixes
----------, Mar 19, 2023

* 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
----------, Mar 19, 2023

Resource Information
Author:
----------
Total Downloads: 222
First Release: Mar 18, 2023
Last Update: Mar 19, 2023
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings