Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public void run(final Server server, final CommandSource sender, final String co
sender.sendTl("whoisHealth", user.getBase().getHealth());
sender.sendTl("whoisHunger", user.getBase().getFoodLevel(), user.getBase().getSaturation());
sender.sendTl("whoisExp", SetExpFix.getTotalExperience(user.getBase()), user.getBase().getLevel());
sender.sendTl("whoisLocation", user.getLocation().getWorld().getName(), user.getLocation().getBlockX(), user.getLocation().getBlockY(), user.getLocation().getBlockZ());
if (sender.isAuthorized("essentials.whois.location")) {
sender.sendTl("whoisLocation", user.getLocation().getWorld().getName(), user.getLocation().getBlockX(), user.getLocation().getBlockY(), user.getLocation().getBlockZ());
}
final long playtimeMs = System.currentTimeMillis() - (user.getBase().getStatistic(PLAY_ONE_TICK) * 50L);
sender.sendTl("whoisPlaytime", DateUtil.formatDateDiff(playtimeMs));
if (!ess.getSettings().isEcoDisabled()) {
Expand Down
2 changes: 2 additions & 0 deletions Essentials/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,8 @@ permissions:
description: Allows access to the /whois command
essentials.whois.ip:
description: Allows access to the /whois command with IP address
essentials.whois.location:
description: Allows access to the /whois command with location
essentials.workbench:
description: Allows access to the /workbench command
essentials.anvil:
Expand Down