Update PlayerEvents.java

Allow other plugins to manage chat.

Makes plugin work with DeluxeChat plugin.
This commit is contained in:
Amir Ali Omidi 2016-01-24 00:32:43 +03:30
parent d8998ac715
commit 5f74aa8ab8

View File

@ -586,7 +586,7 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
} }
} }
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) @EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onChat(final AsyncPlayerChatEvent event) { public void onChat(final AsyncPlayerChatEvent event) {
final Player player = event.getPlayer(); final Player player = event.getPlayer();
final String world = player.getWorld().getName(); final String world = player.getWorld().getName();