From 6d8be92e45a9b5f30a61381d5ac4f9a274ec1d3a Mon Sep 17 00:00:00 2001 From: zml2008 Date: Wed, 18 Jan 2012 08:52:55 -0800 Subject: [PATCH] Update for spoutapi event changes --- .../sk89q/worldedit/spout/WorldEditPlayerListener.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/spout/WorldEditPlayerListener.java b/src/main/java/com/sk89q/worldedit/spout/WorldEditPlayerListener.java index 33e3fae22..0bbf1c928 100644 --- a/src/main/java/com/sk89q/worldedit/spout/WorldEditPlayerListener.java +++ b/src/main/java/com/sk89q/worldedit/spout/WorldEditPlayerListener.java @@ -61,7 +61,7 @@ public class WorldEditPlayerListener implements Listener { this.plugin = plugin; } - @EventHandler(event = PlayerJoinEvent.class, order = Order.EARLIEST) + @EventHandler(order = Order.EARLIEST) public void onPlayerJoin(PlayerJoinEvent event) { plugin.wrapPlayer(event.getPlayer()).dispatchCUIHandshake(); } @@ -71,7 +71,7 @@ public class WorldEditPlayerListener implements Listener { * * @param event Relevant event details */ - @EventHandler(event = PlayerLeaveEvent.class) + @EventHandler public void onPlayerQuit(PlayerLeaveEvent event) { plugin.getWorldEdit().markExpire(plugin.wrapPlayer(event.getPlayer())); } @@ -81,7 +81,7 @@ public class WorldEditPlayerListener implements Listener { * * @param event Relevant event details */ - //@EventHandler(event = PreCommandEvent.class, order = Order.EARLY) + //@EventHandler(order = Order.EARLY) public void onPlayerCommandPreprocess(PreCommandEvent event) { String[] split = event.getMessage().split(" "); @@ -98,7 +98,7 @@ public class WorldEditPlayerListener implements Listener { * * @param event Relevant event details */ - @EventHandler(event = PlayerInteractEvent.class) + @EventHandler public void onPlayerInteract(PlayerInteractEvent event) { final LocalPlayer player = plugin.wrapPlayer(event.getPlayer()); @@ -154,7 +154,7 @@ public class WorldEditPlayerListener implements Listener { } } - @EventHandler(event = PlayerChatEvent.class) + @EventHandler public void onPlayerChat(PlayerChatEvent event) { if (event.isCancelled()) { return;