I am working on a reload method. How do I make this reload the plugin completely as if it were rebooting the server? Does it vary depending on the plugin? Thanks!
Does your plugin have a config? If so, try: Code:java public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if(cmd.getName().equalsIgnoreCase("reloadMyPlugin")) { this.reloadConfig(); }
If you want to reload your own plugin, you can reset all variables, clearing hashmaps and everything (like as it would happens on a reload) but I'm not sure about other plugins.. BrushPainter I think he meant reload the plugin, not the config file.