diff --git a/lib/bukkit.jar b/lib/bukkit.jar index 8a1af8ed..46ac4ce8 100644 Binary files a/lib/bukkit.jar and b/lib/bukkit.jar differ diff --git a/src/com/massivecraft/factions/listeners/FactionsChatListener.java b/src/com/massivecraft/factions/listeners/FactionsChatListener.java index 77b5f36c..b2c5dc58 100644 --- a/src/com/massivecraft/factions/listeners/FactionsChatListener.java +++ b/src/com/massivecraft/factions/listeners/FactionsChatListener.java @@ -9,7 +9,7 @@ import org.bukkit.entity.Player; 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 com.massivecraft.factions.Conf; import com.massivecraft.factions.FPlayer; @@ -30,7 +30,7 @@ public class FactionsChatListener implements Listener // this is for handling slashless command usage and faction/alliance chat, set at lowest priority so Factions gets to them first @EventHandler(priority = EventPriority.LOWEST) - public void onPlayerEarlyChat(PlayerChatEvent event) + public void onPlayerEarlyChat(AsyncPlayerChatEvent event) { if (event.isCancelled()) return; @@ -97,7 +97,7 @@ public class FactionsChatListener implements Listener // this is for handling insertion of the player's faction tag, set at highest priority to give other plugins a chance to modify chat first @EventHandler(priority = EventPriority.HIGHEST) - public void onPlayerChat(PlayerChatEvent event) + public void onPlayerChat(AsyncPlayerChatEvent event) { if (event.isCancelled()) return; diff --git a/src/com/massivecraft/factions/zcore/MPluginSecretPlayerListener.java b/src/com/massivecraft/factions/zcore/MPluginSecretPlayerListener.java index d60f4b9a..3d4c0ef5 100644 --- a/src/com/massivecraft/factions/zcore/MPluginSecretPlayerListener.java +++ b/src/com/massivecraft/factions/zcore/MPluginSecretPlayerListener.java @@ -4,7 +4,7 @@ import org.bukkit.Bukkit; 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.PlayerCommandPreprocessEvent; import org.bukkit.event.player.PlayerPreLoginEvent; @@ -35,7 +35,7 @@ public class MPluginSecretPlayerListener implements Listener } @EventHandler(priority = EventPriority.LOW) - public void onPlayerChat(PlayerChatEvent event) + public void onPlayerChat(AsyncPlayerChatEvent event) { if (event.isCancelled()) return;