From 520d7ac7640ada7adcbc9b4ef662d592e72622e8 Mon Sep 17 00:00:00 2001 From: Wizjany Date: Sun, 15 May 2011 20:37:04 -0400 Subject: [PATCH] Fixed potential client-spamming bug. --- src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index bbceffbdf..0a4a4c426 100644 --- a/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -38,7 +38,6 @@ import com.sk89q.bukkit.migration.PermissionsResolverServerListener; import com.sk89q.worldedit.*; import com.sk89q.worldedit.bags.BlockBag; import com.sk89q.worldedit.bukkit.selections.*; -import com.sk89q.worldedit.cui.SelectionShapeEvent; import com.sk89q.worldedit.regions.*; /** @@ -113,7 +112,7 @@ public class WorldEditPlugin extends JavaPlugin { public void onDisable() { controller.clearSessions(); for (Player player : getServer().getOnlinePlayers()) { - wrapPlayer(player).dispatchCUIEvent(new SelectionShapeEvent("cuboid")); + wrapPlayer(player).dispatchCUIHandshake(); } config.unload(); }