mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 19:25:12 +01:00
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:
parent
093373550d
commit
6e81af47b4
@ -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");
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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");
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user