diff --git a/src/changelog.txt b/src/changelog.txt index c29eda5..f714150 100644 --- a/src/changelog.txt +++ b/src/changelog.txt @@ -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. \ No newline at end of file + - Fire chat Async so it matches all other chat. +v0.39: + - Ignore cancelled commands and chat. \ No newline at end of file diff --git a/src/com/palmergames/bukkit/TownyChat/listener/TownyChatPlayerListener.java b/src/com/palmergames/bukkit/TownyChat/listener/TownyChatPlayerListener.java index eb7134a..10d1e41 100644 --- a/src/com/palmergames/bukkit/TownyChat/listener/TownyChatPlayerListener.java +++ b/src/com/palmergames/bukkit/TownyChat/listener/TownyChatPlayerListener.java @@ -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(); diff --git a/src/plugin.yml b/src/plugin.yml index 04d3dc2..9249a8c 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -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: >