Skip to content

Commit

Permalink
Adds explicit permissions to team commands (#1146)
Browse files Browse the repository at this point in the history
#1144

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

Co-authored-by: Florian CUNY <[email protected]>
  • Loading branch information
tastybento and Poslovitch committed Jan 25, 2020
1 parent 0933735 commit 6e81af4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public IslandTeamInviteAcceptCommand(IslandTeamCommand islandTeamCommand) {

@Override
public void setup() {
inheritPermission();
setPermission("island.team.accept");
setOnlyPlayer(true);
setDescription("commands.island.team.invite.accept.description");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public IslandTeamInviteCommand(IslandTeamCommand parent) {

@Override
public void setup() {
inheritPermission();
setPermission("island.team.invite");
setOnlyPlayer(true);
setDescription("commands.island.team.invite.description");
setConfigurableRankCommand();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public IslandTeamInviteRejectCommand(IslandTeamCommand islandTeamCommand) {

@Override
public void setup() {
inheritPermission();
setPermission("island.team.reject");
setOnlyPlayer(true);
setDescription("commands.island.team.invite.reject.description");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public IslandTeamKickCommand(CompositeCommand islandTeamCommand) {

@Override
public void setup() {
inheritPermission();
setPermission("island.team.kick");
setOnlyPlayer(true);
setParametersHelp("commands.island.team.kick.parameters");
setDescription("commands.island.team.kick.description");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public IslandTeamLeaveCommand(CompositeCommand islandTeamCommand) {

@Override
public void setup() {
inheritPermission();
setPermission("island.team.leave");
setOnlyPlayer(true);
setDescription("commands.island.team.leave.description");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public IslandTeamSetownerCommand(CompositeCommand islandTeamCommand) {

@Override
public void setup() {
inheritPermission();
setPermission("island.team.setowner");
setOnlyPlayer(true);
setParametersHelp("commands.island.team.setowner.parameters");
setDescription("commands.island.team.setowner.description");
Expand Down

0 comments on commit 6e81af4

Please sign in to comment.