Fixed permissions

This commit is contained in:
tastybento 2018-06-02 19:20:18 -07:00
parent afce568a24
commit 19d00712e5
5 changed files with 19 additions and 4 deletions

View File

@ -20,3 +20,18 @@ permissions:
bskyblock.admin.topten: bskyblock.admin.topten:
description: Player can use admin top ten command description: Player can use admin top ten command
default: true default: true
acidisland.intopten:
description: Player is in the top ten.
default: true
acidisland.island.level:
description: Player can use level command
default: true
acidisland.island.top:
description: Player can use top ten command
default: true
acidisland.admin.level:
description: Player can use admin level command
default: true
acidisland.admin.topten:
description: Player can use admin top ten command
default: true

View File

@ -52,7 +52,7 @@ public class AdminLevel extends CompositeCommand {
@Override @Override
public void setup() { public void setup() {
this.setPermission(getPermissionPrefix() + "admin.level"); this.setPermission("admin.level");
this.setOnlyPlayer(false); this.setOnlyPlayer(false);
this.setParameters("admin.level.parameters"); this.setParameters("admin.level.parameters");
this.setDescription("admin.level.description"); this.setDescription("admin.level.description");

View File

@ -56,7 +56,7 @@ public class AdminTop extends CompositeCommand {
@Override @Override
public void setup() { public void setup() {
this.setPermission(getPermissionPrefix() + "admin.top"); this.setPermission("admin.top");
this.setOnlyPlayer(false); this.setOnlyPlayer(false);
this.setDescription("admin.top.description"); this.setDescription("admin.top.description");
} }

View File

@ -42,7 +42,7 @@ public class IslandLevel extends CompositeCommand {
@Override @Override
public void setup() { public void setup() {
this.setPermission(getPermissionPrefix() + "island.level"); this.setPermission("island.level");
this.setParameters("island.level.parameters"); this.setParameters("island.level.parameters");
this.setDescription("island.level.description"); this.setDescription("island.level.description");
this.setOnlyPlayer(true); this.setOnlyPlayer(true);

View File

@ -23,7 +23,7 @@ public class IslandTop extends CompositeCommand {
@Override @Override
public void setup() { public void setup() {
this.setPermission(getPermissionPrefix() + "island.top"); this.setPermission("island.top");
this.setDescription("island.top.description"); this.setDescription("island.top.description");