summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandptime.java
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-09-26 03:20:56 +0100
committerKHobbits <rob@khobbits.co.uk>2011-09-26 03:20:56 +0100
commitefcab71969bdafb68fb4bdb4aa1218e30e0eeb56 (patch)
tree578836da3fc763966c4ff79a43d6a34cc51498f3 /Essentials/src/com/earth2me/essentials/commands/Commandptime.java
parent41e11a738d4162b94724fd1e683c5b0962285570 (diff)
downloadEssentials-efcab71969bdafb68fb4bdb4aa1218e30e0eeb56.tar
Essentials-efcab71969bdafb68fb4bdb4aa1218e30e0eeb56.tar.gz
Essentials-efcab71969bdafb68fb4bdb4aa1218e30e0eeb56.tar.lz
Essentials-efcab71969bdafb68fb4bdb4aa1218e30e0eeb56.tar.xz
Essentials-efcab71969bdafb68fb4bdb4aa1218e30e0eeb56.zip
Updating for register 1.3
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandptime.java')
-rwxr-xr-xEssentials/src/com/earth2me/essentials/commands/Commandptime.java22
1 files changed, 12 insertions, 10 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandptime.java b/Essentials/src/com/earth2me/essentials/commands/Commandptime.java
index 2eb580ea4..115bb20ef 100755
--- a/Essentials/src/com/earth2me/essentials/commands/Commandptime.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandptime.java
@@ -11,7 +11,6 @@ import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
-import org.bukkit.ChatColor;
import org.bukkit.World;
import org.bukkit.entity.Player;
@@ -97,29 +96,31 @@ public class Commandptime extends EssentialsCommand
*/
private void getUsersTime(final CommandSender sender, final Collection<User> users)
{
- if (users.size() > 1)
+ if (users.size() > 1)
{
sender.sendMessage(Util.format("pTimePlayers"));
}
-
- for (User user : users)
+
+ for (User user : users)
{
- if(user.getPlayerTimeOffset() == 0)
+ if (user.getPlayerTimeOffset() == 0)
{
sender.sendMessage(Util.format("pTimeNormal", user.getName()));
}
- else {
+ else
+ {
String time = DescParseTickFormat.format(user.getPlayerTime());
- if(!user.isPlayerTimeRelative())
+ if (!user.isPlayerTimeRelative())
{
sender.sendMessage(Util.format("pTimeCurrentFixed", user.getName(), time));
}
- else {
+ else
+ {
sender.sendMessage(Util.format("pTimeCurrent", user.getName(), time));
}
}
}
-
+
return;
}
@@ -177,7 +178,8 @@ public class Commandptime extends EssentialsCommand
{
sender.sendMessage(Util.format("pTimeSetFixed", time, msg.toString()));
}
- else {
+ else
+ {
sender.sendMessage(Util.format("pTimeSet", time, msg.toString()));
}
}