mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-05 23:08:23 +00:00
Move UUID below alts in /seen (#4615)
This commit is contained in:
parent
e4cf965bae
commit
86d435eee1
1 changed files with 9 additions and 8 deletions
|
@ -102,15 +102,16 @@ public class Commandseen extends EssentialsCommand {
|
||||||
|
|
||||||
user.setDisplayNick();
|
user.setDisplayNick();
|
||||||
sender.sendMessage(tl("seenOnline", user.getDisplayName(), DateUtil.formatDateDiff(user.getLastLogin())));
|
sender.sendMessage(tl("seenOnline", user.getDisplayName(), DateUtil.formatDateDiff(user.getLastLogin())));
|
||||||
if (sender.isAuthorized("essentials.seen.uuid", ess)) {
|
|
||||||
sender.sendMessage(tl("whoisUuid", user.getBase().getUniqueId().toString()));
|
|
||||||
}
|
|
||||||
|
|
||||||
final List<String> history = ess.getUserMap().getUserHistory(user.getBase().getUniqueId());
|
final List<String> history = ess.getUserMap().getUserHistory(user.getBase().getUniqueId());
|
||||||
if (history != null && history.size() > 1) {
|
if (history != null && history.size() > 1) {
|
||||||
sender.sendMessage(tl("seenAccounts", StringUtil.joinListSkip(", ", user.getName(), history)));
|
sender.sendMessage(tl("seenAccounts", StringUtil.joinListSkip(", ", user.getName(), history)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sender.isAuthorized("essentials.seen.uuid", ess)) {
|
||||||
|
sender.sendMessage(tl("whoisUuid", user.getBase().getUniqueId().toString()));
|
||||||
|
}
|
||||||
|
|
||||||
if (user.isAfk()) {
|
if (user.isAfk()) {
|
||||||
sender.sendMessage(tl("whoisAFK", tl("true")));
|
sender.sendMessage(tl("whoisAFK", tl("true")));
|
||||||
}
|
}
|
||||||
|
@ -138,6 +139,11 @@ public class Commandseen extends EssentialsCommand {
|
||||||
user.setDisplayNick();
|
user.setDisplayNick();
|
||||||
if (user.getLastLogout() > 0) {
|
if (user.getLastLogout() > 0) {
|
||||||
sender.sendMessage(tl("seenOffline", user.getName(), DateUtil.formatDateDiff(user.getLastLogout())));
|
sender.sendMessage(tl("seenOffline", user.getName(), DateUtil.formatDateDiff(user.getLastLogout())));
|
||||||
|
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)));
|
||||||
|
}
|
||||||
|
|
||||||
if (sender.isAuthorized("essentials.seen.uuid", ess)) {
|
if (sender.isAuthorized("essentials.seen.uuid", ess)) {
|
||||||
sender.sendMessage(tl("whoisUuid", user.getBase().getUniqueId()));
|
sender.sendMessage(tl("whoisUuid", user.getBase().getUniqueId()));
|
||||||
}
|
}
|
||||||
|
@ -145,11 +151,6 @@ public class Commandseen extends EssentialsCommand {
|
||||||
sender.sendMessage(tl("userUnknown", user.getName()));
|
sender.sendMessage(tl("userUnknown", user.getName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
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)));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (BanLookup.isBanned(ess, user)) {
|
if (BanLookup.isBanned(ess, user)) {
|
||||||
final BanEntry banEntry = BanLookup.getBanEntry(ess, user.getName());
|
final BanEntry banEntry = BanLookup.getBanEntry(ess, user.getName());
|
||||||
final String reason = showBan ? banEntry.getReason() : tl("true");
|
final String reason = showBan ? banEntry.getReason() : tl("true");
|
||||||
|
|
Loading…
Reference in a new issue