mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Fix back on other players
This commit is contained in:
parent
e7aeb5a5d7
commit
c1ac28111e
1 changed files with 2 additions and 2 deletions
|
@ -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<String> 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();
|
||||
|
|
Loading…
Reference in a new issue