Buildscript changes

This commit is contained in:
Luck
2019-01-07 21:25:11 +00:00
Unverified
parent 797c195424
commit db830a0bef
10 changed files with 19 additions and 53 deletions
@@ -91,8 +91,7 @@ public class LuckPermsBrigadier {
public void onCommandSend(PlayerCommandSendEvent e) {
Sender playerAsSender = this.plugin.getSenderFactory().wrap(e.getPlayer());
if (!this.plugin.getCommandManager().hasPermissionForAny(playerAsSender)) {
e.getCommands().remove(this.pluginCommand.getLabel());
e.getCommands().removeAll(this.pluginCommand.getAliases());
e.getCommands().removeAll(Commodore.getAliases(this.pluginCommand));
}
}
}