This plugin will allow you to check and monitor your hard drive space, to attempt and try to prevent the java.io.IOException: No space left on device exception, wiping your data on the hard drive. Not only you can view your disk space, but you can also view other information about the node. When the disk space becomes low, you can shutdown the server automatically or warn online staff members.
/spacewarning - Views system information. Permission: spacewarning.check
/spacewarning silent - Makes the user not see any alerts. Permission: spacewarning.silent
/spacewarning reload - Reloads the configuration. Permission: spacewarning.reload
Keep in mind that all of these commands work in the console and in-game!
spacewarning.notify - Allows the player to see alerts in-game.
Here is an example of a config file,
#If the remaining space on the drive is less than or equal to this number in megabytes, the warning will fire.
#Shut down the server when triggered?
#Send a message to everyone with the spacewarning.notify permission about the remaining space?
#How many seconds between each check to check the drive space
Source code is available on the github.
Motivated and made this plugin because of this thread.