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 | 220d68f375bd117587c91f9478434eee517a33d7 (patch) | |
tree | 6344f983d195a4c8d091afffc9d2f8bdbca929bb /Essentials/src/com/earth2me/essentials/commands/Commandptime.java | |
parent | 19f5a2340d9fdb3902f5c388f463fd569943db07 (diff) | |
download | Essentials-220d68f375bd117587c91f9478434eee517a33d7.tar Essentials-220d68f375bd117587c91f9478434eee517a33d7.tar.gz Essentials-220d68f375bd117587c91f9478434eee517a33d7.tar.lz Essentials-220d68f375bd117587c91f9478434eee517a33d7.tar.xz Essentials-220d68f375bd117587c91f9478434eee517a33d7.zip |
Switch to the new I18n class and format cleanup of all classes
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandptime.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandptime.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandptime.java b/Essentials/src/com/earth2me/essentials/commands/Commandptime.java index 8f06086af..b16cbdc34 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandptime.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandptime.java @@ -1,8 +1,8 @@ package com.earth2me.essentials.commands; import com.earth2me.essentials.DescParseTickFormat; +import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.User; -import com.earth2me.essentials.Util; import java.util.*; import org.bukkit.Server; import org.bukkit.World; @@ -48,7 +48,7 @@ public class Commandptime extends EssentialsCommand User user = ess.getUser(sender); if ((!users.contains(user) || users.size() > 1) && user != null && !user.isAuthorized("essentials.ptime.others")) { - user.sendMessage(Util.i18n("pTimeOthersPermission")); + user.sendMessage(_("pTimeOthersPermission")); return; } @@ -93,25 +93,25 @@ public class Commandptime extends EssentialsCommand { if (users.size() > 1) { - sender.sendMessage(Util.format("pTimePlayers")); + sender.sendMessage(_("pTimePlayers")); } for (User user : users) { if (user.getPlayerTimeOffset() == 0) { - sender.sendMessage(Util.format("pTimeNormal", user.getName())); + sender.sendMessage(_("pTimeNormal", user.getName())); } else { String time = DescParseTickFormat.format(user.getPlayerTime()); if (!user.isPlayerTimeRelative()) { - sender.sendMessage(Util.format("pTimeCurrentFixed", user.getName(), time)); + sender.sendMessage(_("pTimeCurrentFixed", user.getName(), time)); } else { - sender.sendMessage(Util.format("pTimeCurrent", user.getName(), time)); + sender.sendMessage(_("pTimeCurrent", user.getName(), time)); } } } @@ -162,18 +162,18 @@ public class Commandptime extends EssentialsCommand // Inform the sender of the change if (ticks == null) { - sender.sendMessage(Util.format("pTimeReset", msg.toString())); + sender.sendMessage(_("pTimeReset", msg.toString())); } else { String time = DescParseTickFormat.format(ticks); if (!relative) { - sender.sendMessage(Util.format("pTimeSetFixed", time, msg.toString())); + sender.sendMessage(_("pTimeSetFixed", time, msg.toString())); } else { - sender.sendMessage(Util.format("pTimeSet", time, msg.toString())); + sender.sendMessage(_("pTimeSet", time, msg.toString())); } } } @@ -225,7 +225,7 @@ public class Commandptime extends EssentialsCommand // We failed to understand the world target... else { - throw new Exception(Util.i18n("playerNotFound")); + throw new Exception(_("playerNotFound")); } return users; |