mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-05 23:08:23 +00:00
Check plugin equals rather than name equals in autocomplete listener
This commit is contained in:
parent
1ff73b3837
commit
119b21ac67
1 changed files with 1 additions and 1 deletions
|
@ -867,7 +867,7 @@ public class EssentialsPlayerListener implements Listener {
|
|||
PluginCommand command = ess.getServer().getPluginCommand(commandLabel);
|
||||
|
||||
return command != null
|
||||
&& command.getPlugin().getName().equals("Essentials")
|
||||
&& command.getPlugin() == ess
|
||||
&& (ess.getSettings().isCommandOverridden(commandLabel) || (ess.getAlternativeCommandsHandler().getAlternative(commandLabel) == null))
|
||||
&& !user.isAuthorized(command.getName().equals("r") ? "essentials.msg" : "essentials." + command.getName());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue