mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 03:35:11 +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
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
inheritPermission();
|
setPermission("island.team.accept");
|
||||||
setOnlyPlayer(true);
|
setOnlyPlayer(true);
|
||||||
setDescription("commands.island.team.invite.accept.description");
|
setDescription("commands.island.team.invite.accept.description");
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ public class IslandTeamInviteCommand extends CompositeCommand {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
inheritPermission();
|
setPermission("island.team.invite");
|
||||||
setOnlyPlayer(true);
|
setOnlyPlayer(true);
|
||||||
setDescription("commands.island.team.invite.description");
|
setDescription("commands.island.team.invite.description");
|
||||||
setConfigurableRankCommand();
|
setConfigurableRankCommand();
|
||||||
|
@ -19,7 +19,7 @@ public class IslandTeamInviteRejectCommand extends CompositeCommand {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
inheritPermission();
|
setPermission("island.team.reject");
|
||||||
setOnlyPlayer(true);
|
setOnlyPlayer(true);
|
||||||
setDescription("commands.island.team.invite.reject.description");
|
setDescription("commands.island.team.invite.reject.description");
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ public class IslandTeamKickCommand extends ConfirmableCommand {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
inheritPermission();
|
setPermission("island.team.kick");
|
||||||
setOnlyPlayer(true);
|
setOnlyPlayer(true);
|
||||||
setParametersHelp("commands.island.team.kick.parameters");
|
setParametersHelp("commands.island.team.kick.parameters");
|
||||||
setDescription("commands.island.team.kick.description");
|
setDescription("commands.island.team.kick.description");
|
||||||
|
@ -20,7 +20,7 @@ public class IslandTeamLeaveCommand extends ConfirmableCommand {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
inheritPermission();
|
setPermission("island.team.leave");
|
||||||
setOnlyPlayer(true);
|
setOnlyPlayer(true);
|
||||||
setDescription("commands.island.team.leave.description");
|
setDescription("commands.island.team.leave.description");
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ public class IslandTeamSetownerCommand extends CompositeCommand {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
inheritPermission();
|
setPermission("island.team.setowner");
|
||||||
setOnlyPlayer(true);
|
setOnlyPlayer(true);
|
||||||
setParametersHelp("commands.island.team.setowner.parameters");
|
setParametersHelp("commands.island.team.setowner.parameters");
|
||||||
setDescription("commands.island.team.setowner.description");
|
setDescription("commands.island.team.setowner.description");
|
||||||
|
Loading…
Reference in New Issue
Block a user