Skip to content

Commit

Permalink
Show UUIDs in /seen (#3906)
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy authored Feb 21, 2021
1 parent 141512f commit 0ef1e23
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ private void seenOnline(final CommandSource sender, final User user, final boole

user.setDisplayNick();
sender.sendMessage(tl("seenOnline", user.getDisplayName(), DateUtil.formatDateDiff(user.getLastLogin())));

if (ess.getSettings().isDebug()) {
ess.getLogger().info("UUID: " + user.getBase().getUniqueId().toString());
}
sender.sendMessage(tl("whoisUuid", user.getBase().getUniqueId().toString()));

final List<String> history = ess.getUserMap().getUserHistory(user.getBase().getUniqueId());
if (history != null && history.size() > 1) {
Expand Down Expand Up @@ -139,14 +136,11 @@ private void seenOffline(final CommandSource sender, final User user, final bool
user.setDisplayNick();
if (user.getLastLogout() > 0) {
sender.sendMessage(tl("seenOffline", user.getName(), DateUtil.formatDateDiff(user.getLastLogout())));
sender.sendMessage(tl("whoisUuid", user.getBase().getUniqueId()));
} else {
sender.sendMessage(tl("userUnknown", user.getName()));
}

if (ess.getSettings().isDebug()) {
ess.getLogger().info("UUID: " + user.getBase().getUniqueId().toString());
}

final List<String> history = ess.getUserMap().getUserHistory(user.getBase().getUniqueId());
if (history != null && history.size() > 1) {
sender.sendMessage(tl("seenAccounts", StringUtil.joinListSkip(", ", user.getName(), history)));
Expand Down

0 comments on commit 0ef1e23

Please sign in to comment.