Banned moved from /whois to /seen

This commit is contained in:
snowleo 2011-12-07 12:00:01 +01:00
parent e7ebc94a9e
commit 324cd74826
2 changed files with 4 additions and 1 deletions

View file

@ -34,6 +34,10 @@ public class Commandseen extends EssentialsCommand
throw new Exception(_("playerNotFound"));
}
sender.sendMessage(_("seenOffline", u.getDisplayName(), Util.formatDateDiff(u.getLastLogout())));
if (u.isBanned())
{
sender.sendMessage(_("whoisBanned", _("true")));
}
}
}
}

View file

@ -56,7 +56,6 @@ public class Commandwhois extends EssentialsCommand
sender.sendMessage(_("whoisIs", user.getDisplayName(), user.getName()));
sender.sendMessage(_("whoisHealth", user.getHealth()));
sender.sendMessage(_("whoisOP", (user.isOp() ? _("true") : _("false"))));
sender.sendMessage(_("whoisBanned", (user.isBanned() ? _("true") : _("false"))));
sender.sendMessage(_("whoisGod", (user.isGodModeEnabled() ? _("true") : _("false"))));
sender.sendMessage(_("whoisGamemode", _(user.getGameMode().toString().toLowerCase(Locale.ENGLISH))));
sender.sendMessage(_("whoisLocation", user.getLocation().getWorld().getName(), user.getLocation().getBlockX(), user.getLocation().getBlockY(), user.getLocation().getBlockZ()));