mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 09:08:01 +01:00
Check plugin equals rather than name equals in autocomplete listener
This commit is contained in:
parent
1ff73b3837
commit
119b21ac67
@ -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 New Issue
Block a user