Skip to content

Commit

Permalink
Made the island top command "only player"
Browse files Browse the repository at this point in the history
  • Loading branch information
Poslovitch committed Dec 23, 2018
1 parent dc2cc51 commit f270402
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/main/java/world/bentobox/level/commands/IslandTop.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,15 @@ public IslandTop(Level plugin, CompositeCommand parent) {
}

@Override
public boolean execute(User user, String label, List<String> list) {
if (user.isPlayer()) {
this.plugin.getTopTen().getGUI(getWorld(), user, getPermissionPrefix());
}
return true;
public void setup() {
setPermission("island.top");
setDescription("island.top.description");
setOnlyPlayer(true);
}

@Override
public void setup() {
this.setPermission("island.top");
this.setDescription("island.top.description");


public boolean execute(User user, String label, List<String> list) {
plugin.getTopTen().getGUI(getWorld(), user, getPermissionPrefix());
return true;
}

}

0 comments on commit f270402

Please sign in to comment.