From 832aa8f2641042838e25b0b16610b8b75771059a Mon Sep 17 00:00:00 2001 From: xaneo001 Date: Tue, 7 Aug 2012 15:32:03 -0500 Subject: [PATCH] Update src/main/java/com/gmail/nossr50/listeners/PlayerListener.java Attempted to fix the Depreciation on the Player Listener. Some one line on this file says its depreciated. --- .../java/com/gmail/nossr50/listeners/PlayerListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index 3b3a3a691..55fd8f4d7 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -10,7 +10,7 @@ import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.event.player.PlayerChangedWorldEvent; -import org.bukkit.event.player.PlayerChatEvent; +import org.bukkit.event.player.AsyncPlayerChatEvent; import org.bukkit.event.player.PlayerCommandPreprocessEvent; import org.bukkit.event.player.PlayerFishEvent; import org.bukkit.event.player.PlayerFishEvent.State; @@ -241,7 +241,7 @@ public class PlayerListener implements Listener { if (mcMMO.repairManager.isRepairable(inHand)) { mcMMO.repairManager.handleRepair(player, inHand); event.setCancelled(true); - player.updateInventory(); + player.updateInventory(); //says The method updateInventory() from the type Player is deprecated } } @@ -329,7 +329,7 @@ public class PlayerListener implements Listener { * @param event The event to watch */ @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) - public void onPlayerChat(PlayerChatEvent event) { + public void onPlayerChat(AsyncPlayerChatEvent event) { Player player = event.getPlayer(); PlayerProfile profile = Users.getProfile(player);