Skip to content

Commit

Permalink
Fixes a bug with wrong command permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Jul 6, 2021
1 parent 7eaebe5 commit 4ff797c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
package world.bentobox.visit.commands.player;


import org.bukkit.Location;
import org.bukkit.event.entity.ItemSpawnEvent;
import java.util.List;
import java.util.Optional;

import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
Expand Down Expand Up @@ -50,7 +54,7 @@ public VisitConfigureCommand(VisitAddon addon, CompositeCommand parentCommand)
@Override
public void setup()
{
this.setPermission("configure");
this.setPermission("visit.configure");
this.setParametersHelp(Constants.PLAYER_COMMANDS + "configure.parameters");
this.setDescription(Constants.PLAYER_COMMANDS + "configure.description");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public VisitSetLocationCommand(VisitAddon addon, CompositeCommand parentCommand)
@Override
public void setup()
{
this.setPermission("setlocation");
this.setPermission("visit.setlocation");
this.setParametersHelp(Constants.PLAYER_COMMANDS + "set-location.parameters");
this.setDescription(Constants.PLAYER_COMMANDS + "set-location.description");

Expand Down

0 comments on commit 4ff797c

Please sign in to comment.