1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-02 11:13:55 +02:00

Better hide vanished players.

This commit is contained in:
KHobbits
2012-04-03 16:12:49 +01:00
parent 6af79ef419
commit 4849a7cf5f

View File

@@ -46,7 +46,7 @@ public class Commandseen extends EssentialsCommand
throw new Exception(_("playerNotFound")); throw new Exception(_("playerNotFound"));
} }
player.setDisplayNick(); player.setDisplayNick();
sender.sendMessage(_("seenOffline", player.getDisplayName(), Util.formatDateDiff(player.getLastLogout()))); sender.sendMessage(_("seenOffline", player.getName(), Util.formatDateDiff(player.getLastLogout())));
if (player.isBanned()) if (player.isBanned())
{ {
sender.sendMessage(_("whoisBanned", show ? player.getBanReason() : _("true"))); sender.sendMessage(_("whoisBanned", show ? player.getBanReason() : _("true")));