mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
Add previous account tracking to /seen
This commit is contained in:
parent
3c613fd59b
commit
b080187808
4 changed files with 57 additions and 11 deletions
|
@ -72,6 +72,13 @@ public class Commandseen extends EssentialsCommand
|
|||
|
||||
user.setDisplayNick();
|
||||
sender.sendMessage(tl("seenOnline", user.getDisplayName(), DateUtil.formatDateDiff(user.getLastLogin())));
|
||||
|
||||
List<String> history = ess.getUserMap().getUserHistory(user.getBase().getUniqueId());
|
||||
if (history.size() > 1)
|
||||
{
|
||||
sender.sendMessage("User has also been known as: " + StringUtil.joinList(history)); //TODO: TL
|
||||
}
|
||||
|
||||
if (user.isAfk())
|
||||
{
|
||||
sender.sendMessage(tl("whoisAFK", tl("true")));
|
||||
|
@ -110,6 +117,13 @@ public class Commandseen extends EssentialsCommand
|
|||
{
|
||||
sender.sendMessage(tl("userUnknown", user.getName()));
|
||||
}
|
||||
|
||||
List<String> history = ess.getUserMap().getUserHistory(user.getBase().getUniqueId());
|
||||
if (history.size() > 1)
|
||||
{
|
||||
sender.sendMessage("User has also been known as: " + StringUtil.joinList(history)); //TODO: TL
|
||||
}
|
||||
|
||||
if (user.getBase().isBanned())
|
||||
{
|
||||
sender.sendMessage(tl("whoisBanned", showBan ? user.getBanReason() : tl("true")));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue