- Ignore cancelled commands and chat.
This commit is contained in:
ElgarL committed 2013-05-16 17:33:46 +01:00
1 parent ffafc8c66e
commit 255baa6a0c
3 files changed
+5 -3

No files matched your search

+2
View File
@@ -175,3 +175,5 @@ v0.37:
v0.38: v0.38:
- Fire chat Async so it matches all other chat. - Fire chat Async so it matches all other chat.
v0.39:
- Ignore cancelled commands and chat.
@@ -69,7 +69,7 @@ public class TownyChatPlayerListener implements Listener {
} }
} }
@EventHandler(priority = EventPriority.LOWEST) @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) { public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
final Player player = event.getPlayer(); final Player player = event.getPlayer();
@@ -155,7 +155,7 @@ public class TownyChatPlayerListener implements Listener {
} }
} }
@EventHandler(priority = EventPriority.LOW) @EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onPlayerChat(AsyncPlayerChatEvent event) { public void onPlayerChat(AsyncPlayerChatEvent event) {
Player player = event.getPlayer(); Player player = event.getPlayer();
+1 -1
View File
@@ -1,6 +1,6 @@
name: TownyChat name: TownyChat
main: com.palmergames.bukkit.TownyChat.Chat main: com.palmergames.bukkit.TownyChat.Chat
version: TOWNYCHATVer version: 0.39
author: ElgarL, Shade, phrstbrn author: ElgarL, Shade, phrstbrn
website: http://code.google.com/a/eclipselabs.org/p/towny/ website: http://code.google.com/a/eclipselabs.org/p/towny/
description: > description: >