Cancel scheduled tasks on disable

This commit is contained in:
Wizjany 2011-08-07 17:08:18 -04:00
parent 40a66b9be4
commit 31d3f2e7c6

View File

@ -189,6 +189,7 @@ public void onEnable() {
public void onDisable() {
globalRegionManager.unload();
configuration.unload();
this.getServer().getScheduler().cancelTasks(this);
logger.info("WorldGuard " + getDescription().getVersion() + " disabled.");
}