I made this plugin for a server with problems with RAM. If the amount of free ram is under the threshold defined in the config, RamRestart will stop your server. Use this with a wrapper like remotetoolkit for automatic restarts.
Setup:
Change the config to a value that suits your server. RAM is defined in MB. The default is 250 MB.
Commands:
/ram [restart]: Shows free ram, also can restart (stop) the server.
Permissions:
sxw.ram: Defaults to true, allows people to use ram command, but not restart.
sxw.ram.restart: Defaults to OP's, allows people to restart the server.

