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() {
|
public void onDisable() {
|
||||||
super.onDisable();
|
super.onDisable();
|
||||||
restoreBukkitPluginCommand();
|
restoreBukkitPluginCommand();
|
||||||
|
commandManager.unregisterCommands();
|
||||||
plugin.disable();
|
plugin.disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,7 @@ public class ServerUtils extends Plugin {
|
||||||
@Override
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
super.onDisable();
|
super.onDisable();
|
||||||
|
commandManager.unregisterCommands();
|
||||||
plugin.disable();
|
plugin.disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue