mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 12:33:03 +00:00
Delay uuidconversion for 10s and show warning.
UUID conversion should now better handle offline conversion.
This commit is contained in:
parent
a1cdfa19b0
commit
b40aa43872
5 changed files with 154 additions and 13 deletions
|
@ -54,7 +54,8 @@ public class Commandseen extends EssentialsCommand
|
|||
seenIP(server, sender, args[0]);
|
||||
return;
|
||||
}
|
||||
else if (FormatUtil.validIP(args[0]) && (server.getIPBans().contains(args[0]))) {
|
||||
else if (FormatUtil.validIP(args[0]) && (server.getIPBans().contains(args[0])))
|
||||
{
|
||||
sender.sendMessage(tl("isIpBanned", args[0]));
|
||||
return;
|
||||
}
|
||||
|
@ -72,13 +73,18 @@ public class Commandseen extends EssentialsCommand
|
|||
|
||||
user.setDisplayNick();
|
||||
sender.sendMessage(tl("seenOnline", user.getDisplayName(), DateUtil.formatDateDiff(user.getLastLogin())));
|
||||
|
||||
|
||||
if (ess.getSettings().isDebug())
|
||||
{
|
||||
ess.getLogger().info("UUID: " + user.getBase().getUniqueId().toString());
|
||||
}
|
||||
|
||||
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 (user.isAfk())
|
||||
{
|
||||
sender.sendMessage(tl("whoisAFK", tl("true")));
|
||||
|
@ -86,14 +92,14 @@ public class Commandseen extends EssentialsCommand
|
|||
if (user.isJailed())
|
||||
{
|
||||
sender.sendMessage(tl("whoisJail", (user.getJailTimeout() > 0
|
||||
? DateUtil.formatDateDiff(user.getJailTimeout())
|
||||
: tl("true"))));
|
||||
? DateUtil.formatDateDiff(user.getJailTimeout())
|
||||
: tl("true"))));
|
||||
}
|
||||
if (user.isMuted())
|
||||
{
|
||||
sender.sendMessage(tl("whoisMuted", (user.getMuteTimeout() > 0
|
||||
? DateUtil.formatDateDiff(user.getMuteTimeout())
|
||||
: tl("true"))));
|
||||
? DateUtil.formatDateDiff(user.getMuteTimeout())
|
||||
: tl("true"))));
|
||||
}
|
||||
final String location = user.getGeoLocation();
|
||||
if (location != null && (!(sender.isPlayer()) || ess.getUser(sender.getPlayer()).isAuthorized("essentials.geoip.show")))
|
||||
|
@ -117,13 +123,18 @@ public class Commandseen extends EssentialsCommand
|
|||
{
|
||||
sender.sendMessage(tl("userUnknown", user.getName()));
|
||||
}
|
||||
|
||||
|
||||
if (ess.getSettings().isDebug())
|
||||
{
|
||||
ess.getLogger().info("UUID: " + user.getBase().getUniqueId().toString());
|
||||
}
|
||||
|
||||
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 (user.getBase().isBanned())
|
||||
{
|
||||
sender.sendMessage(tl("whoisBanned", showBan ? user.getBanReason() : tl("true")));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue