@@ -0,0 +1,1987 @@
+package me.johnnywoof;%0A%0Aimport org.bukkit.Bukkit;%0Aimport org.bukkit.ChatColor;%0Aimport org.bukkit.entity.Player;%0A%0Apublic class CheckRunnable implements Runnable%7B%0A%09%0A%09@Override%0A%09public void run() %7B%0A%09%09%0A%09%09long num = Value.getSpaceLeftInMB();%0A%09%09%0A%09%09if(num %3C= Value.space)%7B%0A%09%09%09%0A%09%09%09if(Value.warn)%7B%0A%09%09%09%09%0A%09%09%09%09for(Player p : Bukkit.getOnlinePlayers())%7B%0A%09%09%09%09%09%0A%09%09%09%09%09if(p.hasPermission(%22spacewarning.notify%22) %7C%7C p.isOp())%7B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09if(!Value.silents.contains(p.getUniqueId()))%7B%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%09p.sendMessage(ChatColor.DARK_RED + %22%22 + ChatColor.STRIKETHROUGH + %22---------------------------------------%22);%0A%09%09%09%09%09%09%09p.sendMessage(ChatColor.RED + %22WARNING! The space on the drive is low!%22);%0A%09%09%09%09%09%09%09p.sendMessage(ChatColor.RED + %22Space left on drive: %22 + num + %22 MB (%22 + (num / 1024) + %22 GB)%22);%0A%09%09%09%09%09%09%09p.sendMessage(ChatColor.RED + %22To hide this message, please do /spacewarning silent%22);%0A%09%09%09%09%09%09%09p.sendMessage(ChatColor.DARK_RED + %22%22 + ChatColor.STRIKETHROUGH + %22---------------------------------------%22);%0A%09%09%09%09%09%09%0A%09%09%09%09%09%09%7D%0A%09%09%09%09%09%09%0A%09%09%09%09%09%7D%0A%09%09%09%09%09%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%09Bukkit.getLogger().warning(ChatColor.DARK_RED + %22%22 + ChatColor.STRIKETHROUGH + %22---------------------------------------%22);%0A%09%09%09Bukkit.getLogger().warning(ChatColor.RED + %22WARNING! The space on the drive is low!%22);%0A%09%09%09Bukkit.getLogger().warning(ChatColor.RED + %22Space left on drive: %22 + num + %22 MB (%22 + (num / 1024) + %22 GB)%22);%0A%09%09%09Bukkit.getLogger().warning(ChatColor.RED + %22To hide this message, please do /spacewarning silent%22);%0A%09%09%09Bukkit.getLogger().warning(ChatColor.DARK_RED + %22%22 + ChatColor.STRIKETHROUGH + %22---------------------------------------%22);%0A%09%09%09%0A%09%09%09if(Value.shutdown)%7B%0A%09%09%09%09%0A%09%09%09%09for(Player p : Bukkit.getOnlinePlayers())%7B%0A%09%09%09%09%09%0A%09%09%09%09%09p.kickPlayer(ChatColor.RED + %22Server has shutdown due to not enough space left on the drive.%22);%0A%09%09%09%09%09%0A%09%09%09%09%7D%0A%09%09%09%09%0A%09%09%09%09Bukkit.getLogger().severe(%22%5BSpaceWarning%5D Server is shutting down due to only %22 + num + %22 MB left on the drive!%22);%0A%09%09%09%09%0A%09%09%09%09Bukkit.getServer().shutdown();%0A%09%09%09%09%0A%09%09%09%7D%0A%09%09%09%0A%09%09%7D%0A%09%09%0A%09%7D%0A%0A%7D%0A

Create CheckRunnable.java