Fix /r not showing in 1.13+ tab complete

Fixes #2659.
This commit is contained in:
md678685 2019-07-28 14:58:33 +01:00
parent bcdbbe9546
commit 22dc5dcebd

View File

@ -869,7 +869,7 @@ public class EssentialsPlayerListener implements Listener {
return command != null
&& command.getPlugin().getName().equals("Essentials")
&& (ess.getSettings().isCommandOverridden(commandLabel) || (ess.getAlternativeCommandsHandler().getAlternative(commandLabel) == null))
&& !user.isAuthorized("essentials." + command.getName());
&& !user.isAuthorized(command.getName().equals("r") ? "essentials.msg" : "essentials." + command.getName());
}
}
}