properly disable the plugin

This commit is contained in:
dfsek
2021-09-26 15:11:42 -07:00
parent 2dc2d00c0c
commit 0e88d95ed5

View File

@@ -183,7 +183,7 @@ public class TerraBukkitPlugin extends JavaPlugin {
runnable.run();
Bukkit.getScheduler().scheduleAsyncDelayedTask(this, runnable, 200L);
// Bukkit.shutdown(); // we're not *that* evil
setEnabled(false);
Bukkit.getPluginManager().disablePlugin(this);
return false;
} else {
logger.warn("""