Adds explicit permissions to team commands (#1146)

https://github.com/BentoBoxWorld/BentoBox/issues/1144

Also fixes a bug where the untrust was using the coop perm.

Co-authored-by: Florian CUNY <poslovitch@bentobox.world>
This commit is contained in:
tastybento 2020-01-25 00:12:12 -08:00 committed by Florian CUNY
parent 093373550d
commit 6e81af47b4
6 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@ public class IslandTeamInviteAcceptCommand extends ConfirmableCommand {
@Override
public void setup() {
inheritPermission();
setPermission("island.team.accept");
setOnlyPlayer(true);
setDescription("commands.island.team.invite.accept.description");
}

View File

@ -28,7 +28,7 @@ public class IslandTeamInviteCommand extends CompositeCommand {
@Override
public void setup() {
inheritPermission();
setPermission("island.team.invite");
setOnlyPlayer(true);
setDescription("commands.island.team.invite.description");
setConfigurableRankCommand();

View File

@ -19,7 +19,7 @@ public class IslandTeamInviteRejectCommand extends CompositeCommand {
@Override
public void setup() {
inheritPermission();
setPermission("island.team.reject");
setOnlyPlayer(true);
setDescription("commands.island.team.invite.reject.description");
}

View File

@ -21,7 +21,7 @@ public class IslandTeamKickCommand extends ConfirmableCommand {
@Override
public void setup() {
inheritPermission();
setPermission("island.team.kick");
setOnlyPlayer(true);
setParametersHelp("commands.island.team.kick.parameters");
setDescription("commands.island.team.kick.description");

View File

@ -20,7 +20,7 @@ public class IslandTeamLeaveCommand extends ConfirmableCommand {
@Override
public void setup() {
inheritPermission();
setPermission("island.team.leave");
setOnlyPlayer(true);
setDescription("commands.island.team.leave.description");
}

View File

@ -22,7 +22,7 @@ public class IslandTeamSetownerCommand extends CompositeCommand {
@Override
public void setup() {
inheritPermission();
setPermission("island.team.setowner");
setOnlyPlayer(true);
setParametersHelp("commands.island.team.setowner.parameters");
setDescription("commands.island.team.setowner.description");