mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
Remove ban check from /ess cleanup, no longer required.
Fix ban upgrade script.
This commit is contained in:
parent
51be2131f7
commit
0c416c8366
6 changed files with 65 additions and 39 deletions
|
@ -56,13 +56,15 @@ public class Commandseen extends EssentialsCommand
|
|||
seenIP(server, sender, args[0]);
|
||||
return;
|
||||
}
|
||||
else if (FormatUtil.validIP(args[0]) && (server.getIPBans().contains(args[0])))
|
||||
else if (Bukkit.getBanList(BanList.Type.IP).isBanned(args[0]))
|
||||
{
|
||||
sender.sendMessage(tl("isIpBanned", args[0]));
|
||||
return;
|
||||
}
|
||||
else if (Bukkit.getBannedPlayers().contains(Bukkit.getOfflinePlayer(args[0]))) {
|
||||
sender.sendMessage(tl("whoisBanned", showBan ? Bukkit.getBanList(BanList.Type.NAME).getBanEntry(Bukkit.getOfflinePlayer(args[0]).getName()).getReason() : tl("true")));
|
||||
|
||||
else if (Bukkit.getBanList(BanList.Type.NAME).isBanned(args[0]))
|
||||
{
|
||||
sender.sendMessage(tl("whoisBanned", showBan ? Bukkit.getBanList(BanList.Type.NAME).getBanEntry(args[0]).getReason() : tl("true")));
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
@ -168,7 +170,7 @@ public class Commandseen extends EssentialsCommand
|
|||
{
|
||||
final UserMap userMap = ess.getUserMap();
|
||||
|
||||
if (server.getIPBans().contains(ipAddress))
|
||||
if (Bukkit.getBanList(BanList.Type.IP).isBanned(ipAddress))
|
||||
{
|
||||
sender.sendMessage(tl("isIpBanned", ipAddress));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue