diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-06-08 22:31:19 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-06-08 22:31:19 +0100 |
commit | 7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77 (patch) | |
tree | baf76fef3065378e52b8e7657725c579889dc33a /Essentials/src/com/earth2me/essentials/commands/Commandseen.java | |
parent | c1bcfa628620bdce2ad29f908baa4bec0df7342c (diff) | |
download | Essentials-7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77.tar Essentials-7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77.tar.gz Essentials-7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77.tar.lz Essentials-7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77.tar.xz Essentials-7470ee685467e9dd7b1d6c0abf6e8ff174ed6e77.zip |
Split util classes.
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandseen.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandseen.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandseen.java b/Essentials/src/com/earth2me/essentials/commands/Commandseen.java index 8c34687ca..655886e83 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandseen.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandseen.java @@ -3,7 +3,9 @@ package com.earth2me.essentials.commands; import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.User; import com.earth2me.essentials.UserMap; -import com.earth2me.essentials.Util; +import com.earth2me.essentials.utils.StringUtil; +import com.earth2me.essentials.utils.DateUtil; +import com.earth2me.essentials.utils.FormatUtil; import java.util.ArrayList; import java.util.List; import org.bukkit.Location; @@ -47,7 +49,7 @@ public class Commandseen extends EssentialsCommand User player = ess.getOfflineUser(args[0]); if (player == null) { - if (ipLookup && Util.validIP(args[0])) + if (ipLookup && FormatUtil.validIP(args[0])) { seenIP(server, sender, args[0]); return; @@ -65,7 +67,7 @@ public class Commandseen extends EssentialsCommand { user.setDisplayNick(); - sender.sendMessage(_("seenOnline", user.getDisplayName(), Util.formatDateDiff(user.getLastLogin()))); + sender.sendMessage(_("seenOnline", user.getDisplayName(), DateUtil.formatDateDiff(user.getLastLogin()))); if (user.isAfk()) { sender.sendMessage(_("whoisAFK", _("true"))); @@ -73,13 +75,13 @@ public class Commandseen extends EssentialsCommand if (user.isJailed()) { sender.sendMessage(_("whoisJail", (user.getJailTimeout() > 0 - ? Util.formatDateDiff(user.getJailTimeout()) + ? DateUtil.formatDateDiff(user.getJailTimeout()) : _("true")))); } if (user.isMuted()) { sender.sendMessage(_("whoisMuted", (user.getMuteTimeout() > 0 - ? Util.formatDateDiff(user.getMuteTimeout()) + ? DateUtil.formatDateDiff(user.getMuteTimeout()) : _("true")))); } final String location = user.getGeoLocation(); @@ -98,7 +100,7 @@ public class Commandseen extends EssentialsCommand user.setDisplayNick(); if (user.getLastLogout() > 0) { - sender.sendMessage(_("seenOffline", user.getName(), Util.formatDateDiff(user.getLastLogout()))); + sender.sendMessage(_("seenOffline", user.getName(), DateUtil.formatDateDiff(user.getLastLogout()))); } else { @@ -157,7 +159,7 @@ public class Commandseen extends EssentialsCommand if (matches.size() > 0) { sender.sendMessage(_("matchingIPAddress")); - sender.sendMessage(Util.joinList(matches)); + sender.sendMessage(StringUtil.joinList(matches)); } else { |