This commit is contained in:
Telesphoreo 2021-10-02 18:43:02 -05:00
parent a56a9208a1
commit e4bd897094

View file

@ -30,10 +30,10 @@ public class Commandseen extends EssentialsCommand {
if (args.length < 1) {
throw new NotEnoughArgumentsException();
}
final boolean showBan = getTFMHandler().isAdmin(sender.getPlayer());
final boolean showBan = sender.isAuthorized("essentials.seen.banreason", ess);
final boolean showIp = getTFMHandler().isAdmin(sender.getPlayer());
final boolean showLocation = getTFMHandler().isAdmin(sender.getPlayer());
final boolean searchAccounts = getTFMHandler().isAdmin(sender.getPlayer());
final boolean searchAccounts = commandLabel.contains("alts") && sender.isAuthorized("essentials.seen.alts", ess);
User player;
// Check by uuid, if it fails check by name.