Buildscript changes
This commit is contained in:
+1
-4
@@ -3,10 +3,7 @@ plugins {
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name 'spigot-repo'
|
||||
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
|
||||
}
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user