diff options
author | snowleo <schneeleo@gmail.com> | 2011-11-21 02:55:26 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-11-21 02:55:26 +0100 |
commit | e3fa24375342bdf58494c26cc125acb7d621cc87 (patch) | |
tree | 457ec062b09eb5c6aec08111e76e7991c61efb1a /EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java | |
parent | 0d0eb1e8bd50d0ed8cbb0a496fa8c6a349e88635 (diff) | |
download | Essentials-e3fa24375342bdf58494c26cc125acb7d621cc87.tar Essentials-e3fa24375342bdf58494c26cc125acb7d621cc87.tar.gz Essentials-e3fa24375342bdf58494c26cc125acb7d621cc87.tar.lz Essentials-e3fa24375342bdf58494c26cc125acb7d621cc87.tar.xz Essentials-e3fa24375342bdf58494c26cc125acb7d621cc87.zip |
Switch to the new I18n class and format cleanup of all classes
Diffstat (limited to 'EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java')
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java index c0559ddef..f547f0da0 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java @@ -1,7 +1,7 @@ package com.earth2me.essentials.chat; +import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.IEssentials; -import com.earth2me.essentials.Util; import java.util.HashMap; import java.util.Map; import java.util.logging.Level; @@ -32,21 +32,21 @@ public class EssentialsChat extends JavaPlugin pluginManager.registerEvent(Type.PLAYER_CHAT, playerListenerHighest, Priority.Highest, this); if (!this.getDescription().getVersion().equals(ess.getDescription().getVersion())) { - LOGGER.log(Level.WARNING, Util.i18n("versionMismatchAll")); + LOGGER.log(Level.WARNING, _("versionMismatchAll")); } - LOGGER.info(Util.format("loadinfo", this.getDescription().getName(), this.getDescription().getVersion(), "essentials team")); + LOGGER.info(_("loadinfo", this.getDescription().getName(), this.getDescription().getVersion(), "essentials team")); } public void onDisable() { chatListener.clear(); } - + public void addEssentialsChatListener(final String plugin, final IEssentialsChatListener listener) { chatListener.put(plugin, listener); } - + public IEssentialsChatListener removeEssentialsChatListener(final String plugin) { return chatListener.remove(plugin); |