Fix NPE for command getter on plugin disable

This commit is contained in:
Gabriel Tofvesson 2021-04-24 00:35:14 +02:00
parent f6a39b4e58
commit 259c53c0eb

@ -26,8 +26,6 @@ public class InvTweaksPlugin extends JavaPlugin {
public void onDisable() {
logger.info("Inventory Tweaks disabled");
getCommand("sort").setExecutor(null);
HandlerList.unregisterAll(this);
}
}