From 8009c1539a3def75281ac33c2590f7741965b191 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 14 Jul 2013 01:20:36 +0100 Subject: Fix local chat spy tag order. --- .../essentials/chat/EssentialsChatPlayerListenerNormal.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'EssentialsChat') 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()) -- cgit v1.2.3