mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Merge branch 'release' of github.com:essentials/Essentials into 2.9
This commit is contained in:
commit
6f28540d59
1 changed files with 15 additions and 4 deletions
|
@ -35,12 +35,23 @@ public class Commandseen extends EssentialsCommand
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
User player = getPlayer(server, args, 0);
|
User user = getPlayer(server, args, 0);
|
||||||
player.setDisplayNick();
|
user.setDisplayNick();
|
||||||
sender.sendMessage(_("seenOnline", player.getDisplayName(), Util.formatDateDiff(player.getLastLogin())));
|
sender.sendMessage(_("seenOnline", user.getDisplayName(), Util.formatDateDiff(user.getLastLogin())));
|
||||||
|
sender.sendMessage(_("whoisAFK", (user.isAfk() ? _("true") : _("false"))));
|
||||||
|
sender.sendMessage(_("whoisJail", (user.isJailed()
|
||||||
|
? user.getJailTimeout() > 0
|
||||||
|
? Util.formatDateDiff(user.getJailTimeout())
|
||||||
|
: _("true")
|
||||||
|
: _("false"))));
|
||||||
|
sender.sendMessage(_("whoisMuted", (user.isMuted()
|
||||||
|
? user.getMuteTimeout() > 0
|
||||||
|
? Util.formatDateDiff(user.getMuteTimeout())
|
||||||
|
: _("true")
|
||||||
|
: _("false"))));
|
||||||
if (extra)
|
if (extra)
|
||||||
{
|
{
|
||||||
sender.sendMessage(_("whoisIPAddress", player.getAddress().getAddress().toString()));
|
sender.sendMessage(_("whoisIPAddress", user.getAddress().getAddress().toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (NoSuchFieldException e)
|
catch (NoSuchFieldException e)
|
||||||
|
|
Loading…
Reference in a new issue