- 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
+6 -4

No files matched your search

+3 -1
View File
@@ -174,4 +174,6 @@ v0.37:
- Remove mute alias on 'chmute' So TownyChat does not block Essentials mute.
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) {
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) {
Player player = event.getPlayer();
+1 -1
View File
@@ -1,6 +1,6 @@
name: TownyChat
main: com.palmergames.bukkit.TownyChat.Chat
version: TOWNYCHATVer
version: 0.39
author: ElgarL, Shade, phrstbrn
website: http://code.google.com/a/eclipselabs.org/p/towny/
description: >