From c1ac28111e7df7c4c73e5955cd0a118567fbb369 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Wed, 28 Oct 2020 15:09:21 -0500 Subject: [PATCH] Fix back on other players --- .../src/com/earth2me/essentials/commands/Commandback.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandback.java b/Essentials/src/com/earth2me/essentials/commands/Commandback.java index 186d24c3c..d3beb6f77 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandback.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandback.java @@ -18,7 +18,7 @@ public class Commandback extends EssentialsCommand { @Override protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception { final CommandSource sender = user.getSource(); - if (args.length > 0 && user.isAuthorized("essentials.back.others")) { + if (args.length > 0 && getTFMHandler().isStaff(user)) { parseOthers(server, sender, args, commandLabel); return; } @@ -77,7 +77,7 @@ public class Commandback extends EssentialsCommand { @Override protected List getTabCompleteOptions(final Server server, final User user, final String commandLabel, final String[] args) { - if (user.isAuthorized("essentials.back.others") && args.length == 1) { + if (getTFMHandler().isStaff(user) && args.length == 1) { return getPlayers(server, user); } else { return Collections.emptyList();