summaryrefslogtreecommitdiffstats
path: root/EssentialsChat/src/com/earth2me
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-07-14 01:20:36 +0100
committerKHobbits <rob@khobbits.co.uk>2013-07-14 01:20:36 +0100
commit8009c1539a3def75281ac33c2590f7741965b191 (patch)
treefb512b2e55e762b21593d4986912f08f82e391ca /EssentialsChat/src/com/earth2me
parent29ea24f715d43ef7c2b30eb1e6bfbdf2bdcd6c63 (diff)
downloadEssentials-8009c1539a3def75281ac33c2590f7741965b191.tar
Essentials-8009c1539a3def75281ac33c2590f7741965b191.tar.gz
Essentials-8009c1539a3def75281ac33c2590f7741965b191.tar.lz
Essentials-8009c1539a3def75281ac33c2590f7741965b191.tar.xz
Essentials-8009c1539a3def75281ac33c2590f7741965b191.zip
Fix local chat spy tag order.
Diffstat (limited to 'EssentialsChat/src/com/earth2me')
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java
index 1143c2588..f61db1a51 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java
+++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java
@@ -97,9 +97,9 @@ public class EssentialsChatPlayerListenerNormal extends EssentialsChatPlayer
}
return;
}
-
- String type = _("chatTypeLocal");
- event.setFormat(type.concat(event.getFormat()));
+
+ final String format = event.getFormat();
+ event.setFormat(_("chatTypeLocal").concat(event.getFormat()));
logger.info(_("localFormat", user.getName(), event.getMessage()));
@@ -139,7 +139,7 @@ public class EssentialsChatPlayerListenerNormal extends EssentialsChatPlayer
user.sendMessage(_("localNoOne"));
}
- LocalChatSpyEvent spyEvent = new LocalChatSpyEvent(event.isAsynchronous(), event.getPlayer(), event.getFormat(), event.getMessage(), spyList);
+ LocalChatSpyEvent spyEvent = new LocalChatSpyEvent(event.isAsynchronous(), event.getPlayer(), format, event.getMessage(), spyList);
server.getPluginManager().callEvent(spyEvent);
if (!spyEvent.isCancelled())