Skip to content

Commit

Permalink
Adds explicit perms to team commands.
Browse files Browse the repository at this point in the history
#1144

Also fixes a bug where the untrust was using the coop perm.
  • Loading branch information
tastybento committed Jan 19, 2020
1 parent a550385 commit 55ebce0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 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() {
setPermission("island.team");
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() {
setPermission("island.team");
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() {
setPermission("island.team");
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() {
setPermission("island.team");
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() {
setPermission("island.team");
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() {
setPermission("island.team");
setPermission("island.team.setowner");
setOnlyPlayer(true);
setParametersHelp("commands.island.team.setowner.parameters");
setDescription("commands.island.team.setowner.description");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public IslandTeamUntrustCommand(CompositeCommand parentCommand) {

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

0 comments on commit 55ebce0

Please sign in to comment.