From 220d68f375bd117587c91f9478434eee517a33d7 Mon Sep 17 00:00:00 2001 From: snowleo Date: Mon, 21 Nov 2011 02:55:26 +0100 Subject: Switch to the new I18n class and format cleanup of all classes --- .../essentials/chat/EssentialsChatPlayerListenerNormal.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java') diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java index d726cb569..363e4ca6e 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerNormal.java @@ -1,9 +1,9 @@ package com.earth2me.essentials.chat; import com.earth2me.essentials.ChargeException; +import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.IEssentials; import com.earth2me.essentials.User; -import com.earth2me.essentials.Util; import java.util.Map; import org.bukkit.Server; import org.bukkit.event.player.PlayerChatEvent; @@ -25,8 +25,8 @@ public class EssentialsChatPlayerListenerNormal extends EssentialsChatPlayer } /** - * This file should handle detection of the local chat features... - * if local chat is enabled, we need to handle it here + * This file should handle detection of the local chat features... if local chat is enabled, we need to handle + * it here */ final User user = ess.getUser(event.getPlayer()); final String chatType = getChatType(event.getMessage()); @@ -56,11 +56,11 @@ public class EssentialsChatPlayerListenerNormal extends EssentialsChatPlayer { charge(user, command.toString()); event.setMessage(event.getMessage().substring(1)); - event.setFormat(Util.format(format.toString(), event.getFormat())); + event.setFormat(_(format.toString(), event.getFormat())); return; } - user.sendMessage(Util.i18n(errorMsg.toString())); + user.sendMessage(_(errorMsg.toString())); event.setCancelled(true); return; } -- cgit v1.2.3