Unregister commands when disabling
This commit is contained in:
parent
86e8c3a9e6
commit
095cad4ed0
2 changed files with 2 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ public class ServerUtils extends JavaPlugin implements CommandExecutor {
|
|||
public void onDisable() {
|
||||
super.onDisable();
|
||||
restoreBukkitPluginCommand();
|
||||
commandManager.unregisterCommands();
|
||||
plugin.disable();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue