From 0ee1321546d043a243c74629584c55c7702dd312 Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Fri, 13 Nov 2020 21:08:57 +0100 Subject: [PATCH] Add missing permissions --- .../com/sk89q/worldedit/command/BrushCommands.java | 11 ----------- .../com/sk89q/worldedit/command/GeneralCommands.java | 1 + .../sk89q/worldedit/command/SelectionCommands.java | 1 + .../com/sk89q/worldedit/command/ToolCommands.java | 1 + 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java index 4b46dd480..20a85deed 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java @@ -153,17 +153,6 @@ public class BrushCommands { this.worldEdit = worldEdit; } - /* Covered by ToolCommands - @Command( - name = "none", - aliases = "unbind", - desc = "Unbind a bound brush from your current item" - ) - void none(Player player, LocalSession session) throws WorldEditException { - ToolCommands.setToolNone(player, session, true); - } - */ - @Command(name = "blendball", aliases = { "bb", diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/GeneralCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/GeneralCommands.java index 670c3b589..3d48aef5f 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/GeneralCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/GeneralCommands.java @@ -403,6 +403,7 @@ public class GeneralCommands { aliases = {"/toggleplace"}, desc = "Switch between your position and pos1 for placement" ) + @CommandPermissions("worldedit.toggleplace") public void togglePlace(Player player, LocalSession session) { if (session.togglePlacementPosition()) { player.printInfo(TranslatableComponent.of("worldedit.toggleplace.pos1")); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java index 2a4a0c0e0..dec829d8b 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java @@ -570,6 +570,7 @@ public class SelectionCommands { aliases = { ";", "/desel", "/deselect" }, desc = "Choose a region selector" ) + @CommandPermissions("worldedit.analysis.sel") public void select(Actor actor, World world, LocalSession session, @Arg(desc = "Selector to switch to", def = "") SelectorChoice selector, diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java index cf148a7f7..8cbeab989 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java @@ -160,6 +160,7 @@ public class ToolCommands { aliases = "unbind", desc = "Unbind a bound tool from your current item" ) + @CommandPermissions("worldedit.tool.none") public void none(Player player, LocalSession session) throws WorldEditException { setToolNone(player, session, false); }