From b8a987b20488e79e98ca3a525662f60916cbc959 Mon Sep 17 00:00:00 2001 From: Wizjany Date: Sun, 7 Aug 2011 11:57:32 -0400 Subject: [PATCH] Cancel scheduler tasks onDisable to prevent nag warnings --- src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index 1a1e70c20..84515b888 100644 --- a/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -118,6 +118,7 @@ public class WorldEditPlugin extends JavaPlugin { } controller.clearSessions(); config.unload(); + this.getServer().getScheduler().cancelTasks(this); } /**