diff --git a/src/main/java/world/bentobox/boxed/commands/AdminPlaceStructureCommand.java b/src/main/java/world/bentobox/boxed/commands/AdminPlaceStructureCommand.java index 03342a7..4541136 100644 --- a/src/main/java/world/bentobox/boxed/commands/AdminPlaceStructureCommand.java +++ b/src/main/java/world/bentobox/boxed/commands/AdminPlaceStructureCommand.java @@ -67,7 +67,7 @@ public AdminPlaceStructureCommand(CompositeCommand parent) { @Override public void setup() { - this.setPermission("boxed.commands.boxadmin.place"); + this.setPermission("admin.place"); this.setOnlyPlayer(false); this.setParametersHelp("boxed.commands.boxadmin.place.parameters"); this.setDescription("boxed.commands.boxadmin.place.description"); diff --git a/src/main/resources/addon.yml b/src/main/resources/addon.yml index aa84c6d..931d246 100755 --- a/src/main/resources/addon.yml +++ b/src/main/resources/addon.yml @@ -135,6 +135,9 @@ permissions: boxed.admin.reload: description: Reload the config.yml default: op + boxed.admin.place: + description: Allow use of '/boxadmin place' command - place a structure in a box and record it for future boxes + default: op boxed.admin.delete: description: Let a player completely remove a player (including island) default: op diff --git a/src/test/java/world/bentobox/boxed/commands/AdminPlaceStructureCommandTest.java b/src/test/java/world/bentobox/boxed/commands/AdminPlaceStructureCommandTest.java index b648dfb..eecd401 100644 --- a/src/test/java/world/bentobox/boxed/commands/AdminPlaceStructureCommandTest.java +++ b/src/test/java/world/bentobox/boxed/commands/AdminPlaceStructureCommandTest.java @@ -66,7 +66,7 @@ void setUpCommand() { @Test void testSetup() { assertEquals("place", cmd.getLabel()); - assertEquals("boxed.commands.boxadmin.place", cmd.getPermission()); + assertEquals("admin.place", cmd.getPermission()); assertFalse(cmd.isOnlyPlayer()); }