Skip to content

Commit

Permalink
Switch to call API instead of execute to enable perms
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jul 28, 2019
1 parent bed0434 commit 6957705
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -70,7 +70,7 @@ public boolean execute(User user, String label, List<String> args) {
if (args.isEmpty()) {
// Known player, go
if (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);
}
try {
NewIsland.builder()
Expand Down

0 comments on commit 6957705

Please sign in to comment.