Fix NPE for command getter on plugin disable
This commit is contained in:
parent
f6a39b4e58
commit
259c53c0eb
@ -26,8 +26,6 @@ public class InvTweaksPlugin extends JavaPlugin {
|
|||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
logger.info("Inventory Tweaks disabled");
|
logger.info("Inventory Tweaks disabled");
|
||||||
|
|
||||||
getCommand("sort").setExecutor(null);
|
|
||||||
|
|
||||||
HandlerList.unregisterAll(this);
|
HandlerList.unregisterAll(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user