From 20e4786f08811e497967ac0fd7cfc0a32583ec7a Mon Sep 17 00:00:00 2001 From: tastybento Date: Sun, 28 Jul 2019 15:21:34 -0700 Subject: [PATCH] Switch to using call instead of execute to enable perms to be used https://github.com/BentoBoxWorld/BentoBox/issues/759 --- .../java/world/bentobox/caveblock/commands/IslandCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/world/bentobox/caveblock/commands/IslandCommand.java b/src/main/java/world/bentobox/caveblock/commands/IslandCommand.java index 37b9813..6e88365 100644 --- a/src/main/java/world/bentobox/caveblock/commands/IslandCommand.java +++ b/src/main/java/world/bentobox/caveblock/commands/IslandCommand.java @@ -64,10 +64,10 @@ public class IslandCommand extends CompositeCommand { if (args.isEmpty()) { // If user has an island, go if (getPlugin().getIslands().getIsland(getWorld(), user.getUniqueId()) != null) { - return getSubCommand("go").map(goCmd -> goCmd.execute(user, goCmd.getLabel(), new ArrayList<>())).orElse(false); + return getSubCommand("go").map(goCmd -> goCmd.call(user, goCmd.getLabel(), new ArrayList<>())).orElse(false); } // No islands currently - return getSubCommand("create").map(createCmd -> createCmd.execute(user, createCmd.getLabel(), new ArrayList<>())).orElse(false); + return getSubCommand("create").map(createCmd -> createCmd.call(user, createCmd.getLabel(), new ArrayList<>())).orElse(false); } user.sendMessage("general.errors.unknown-command", TextVariables.LABEL, getTopLabel()); return false;