mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
Fix a couple of cosmetic errors in /seen
This commit is contained in:
parent
2a91f593de
commit
0e7d64f9e7
15 changed files with 25 additions and 16 deletions
|
@ -67,14 +67,23 @@ public class Commandseen extends EssentialsCommand
|
|||
throw new Exception(_("playerNotFound"));
|
||||
}
|
||||
player.setDisplayNick();
|
||||
sender.sendMessage(_("seenOffline", player.getName(), Util.formatDateDiff(player.getLastLogout())));
|
||||
if (player.getLastLogout() > 0)
|
||||
{
|
||||
sender.sendMessage(_("seenOffline", player.getName(), Util.formatDateDiff(player.getLastLogout())));
|
||||
}
|
||||
else {
|
||||
sender.sendMessage(_("userUnknown", player.getName()));
|
||||
}
|
||||
if (player.isBanned())
|
||||
{
|
||||
sender.sendMessage(_("whoisBanned", showBan ? player.getBanReason() : _("true")));
|
||||
}
|
||||
if (extra)
|
||||
{
|
||||
sender.sendMessage(_("whoisIPAddress", player.getLastLoginAddress()));
|
||||
if (!player.getLastLoginAddress().isEmpty())
|
||||
{
|
||||
sender.sendMessage(_("whoisIPAddress", player.getLastLoginAddress()));
|
||||
}
|
||||
final Location loc = player.getLogoutLocation();
|
||||
if (loc != null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue