From e4bd8970949868b37fb30b9a3b25b5a678924dca Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Sat, 2 Oct 2021 18:43:02 -0500 Subject: [PATCH] Fix this --- .../java/com/earth2me/essentials/commands/Commandseen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandseen.java b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandseen.java index 2eaa3958c..59a7e512e 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandseen.java +++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandseen.java @@ -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.