diff options
author | ementalo <ementalodev@gmx.co.uk> | 2012-08-04 09:25:54 +0100 |
---|---|---|
committer | ementalo <ementalodev@gmx.co.uk> | 2012-08-04 09:25:54 +0100 |
commit | af73c11638fda0c65fa68506d301b2a68b780bf6 (patch) | |
tree | 52e4cf55b5480742ff6830c76e82b9b0c92d8bdc /EssentialsXMPP/src/com/earth2me/essentials | |
parent | 1a07815f4b535cc80c32579b010294eb4b49ecfc (diff) | |
download | Essentials-af73c11638fda0c65fa68506d301b2a68b780bf6.tar Essentials-af73c11638fda0c65fa68506d301b2a68b780bf6.tar.gz Essentials-af73c11638fda0c65fa68506d301b2a68b780bf6.tar.lz Essentials-af73c11638fda0c65fa68506d301b2a68b780bf6.tar.xz Essentials-af73c11638fda0c65fa68506d301b2a68b780bf6.zip |
CB #2289 Bukkit #1512
Change PlayerChatEvent to AsyncPlayerChatEvent
Diffstat (limited to 'EssentialsXMPP/src/com/earth2me/essentials')
-rw-r--r-- | EssentialsXMPP/src/com/earth2me/essentials/xmpp/EssentialsXMPPPlayerListener.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/EssentialsXMPPPlayerListener.java b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/EssentialsXMPPPlayerListener.java index 1fa5a243c..468a7ec4e 100644 --- a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/EssentialsXMPPPlayerListener.java +++ b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/EssentialsXMPPPlayerListener.java @@ -5,7 +5,7 @@ import com.earth2me.essentials.User; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; -import org.bukkit.event.player.PlayerChatEvent; +import org.bukkit.event.player.AsyncPlayerChatEvent; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerQuitEvent; @@ -28,7 +28,7 @@ class EssentialsXMPPPlayerListener implements Listener } @EventHandler(priority= EventPriority.MONITOR) - public void onPlayerChat(final PlayerChatEvent event) + public void onPlayerChat(final AsyncPlayerChatEvent event) { final User user = ess.getUser(event.getPlayer()); sendMessageToSpyUsers(String.format(event.getFormat(), user.getDisplayName(), event.getMessage())); |