From e198b61eaea9f5a6af19b0c3f52b86003ca1c402 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Thu, 9 Aug 2012 13:11:51 +0100 Subject: Fix Chat Formatting so chat type is shown first. --- .../src/com/earth2me/essentials/chat/EssentialsChatPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'EssentialsChat/src/com') diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java index 1ebb6389c..bc6b27aea 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java @@ -172,7 +172,7 @@ public abstract class EssentialsChatPlayer implements Listener } } - String message = String.format(event.getFormat(), type.concat(sender.getDisplayName()), event.getMessage()); + String message = type.concat(String.format(event.getFormat(), sender.getDisplayName(), event.getMessage())); synchronized (listeners) { for (Map.Entry listener : listeners.entrySet()) -- cgit v1.2.3