mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 12:33:03 +00:00
Format /seen account history list, optimize map loading.
This commit is contained in:
parent
b080187808
commit
b6c0871daa
29 changed files with 95 additions and 33 deletions
|
@ -74,9 +74,9 @@ public class Commandseen extends EssentialsCommand
|
|||
sender.sendMessage(tl("seenOnline", user.getDisplayName(), DateUtil.formatDateDiff(user.getLastLogin())));
|
||||
|
||||
List<String> history = ess.getUserMap().getUserHistory(user.getBase().getUniqueId());
|
||||
if (history.size() > 1)
|
||||
if (history != null && history.size() > 1)
|
||||
{
|
||||
sender.sendMessage("User has also been known as: " + StringUtil.joinList(history)); //TODO: TL
|
||||
sender.sendMessage(tl("seenAccounts", StringUtil.joinListSkip(", ", user.getName(), history)));
|
||||
}
|
||||
|
||||
if (user.isAfk())
|
||||
|
@ -119,9 +119,9 @@ public class Commandseen extends EssentialsCommand
|
|||
}
|
||||
|
||||
List<String> history = ess.getUserMap().getUserHistory(user.getBase().getUniqueId());
|
||||
if (history.size() > 1)
|
||||
if (history != null && history.size() > 1)
|
||||
{
|
||||
sender.sendMessage("User has also been known as: " + StringUtil.joinList(history)); //TODO: TL
|
||||
sender.sendMessage(tl("seenAccounts", StringUtil.joinListSkip(", ", user.getName(), history)));
|
||||
}
|
||||
|
||||
if (user.getBase().isBanned())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue