Monitor the server's memory and restart it when appropriate.
May be a good choice for servers with small memory.
By the way, this is my first plugin, so there may be some bugs.
Example
Command
All commands are only available to the op.
Reload
config.yml and the plugin
Make the plugin enabled. The
enable option in
config.yml will also be modified.
Make the plugin disabled. The
enable option in
config.yml will also be modified.
Shows the current memory allocated by the server, the
limitMemory option in
config.yml, and the
enable option in
config.yml.
Suspend the restart when it enters the restart countdown phase and the plugin will restart detecting memory after
detectDelay