I am trying to make a command that reloads the config? Any help? Heres my current code: Code:java if(!p.hasPermission("simpleprotect.reload")) { p.sendMessage(ChatColor.BLACK + "[" + ChatColor.GREEN + "SimpleProtection" + ChatColor.BLACK + "]: " + ChatColor.RED + "You do not have permission to reload SimpleProtection."); } else { instance.reloadConfig(); instance.saveConfig(); p.sendMessage(ChatColor.BLACK + "[" + ChatColor.GREEN + "SimpleProtection" + ChatColor.BLACK + "]: " + ChatColor.RED + "SimpleProtection has reloaded."); } }
Main.instance = this; and public static Main instance; EDIT by Moderator: merged posts, please use the edit button instead of double posting.