mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 10:37:41 +01:00
Cancel scheduled tasks on disable
This commit is contained in:
parent
40a66b9be4
commit
31d3f2e7c6
@ -189,6 +189,7 @@ public void onEnable() {
|
|||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
globalRegionManager.unload();
|
globalRegionManager.unload();
|
||||||
configuration.unload();
|
configuration.unload();
|
||||||
|
this.getServer().getScheduler().cancelTasks(this);
|
||||||
|
|
||||||
logger.info("WorldGuard " + getDescription().getVersion() + " disabled.");
|
logger.info("WorldGuard " + getDescription().getVersion() + " disabled.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user