mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-23 18:45:17 +01:00
Made the island top command "only player"
This commit is contained in:
parent
dc2cc515f8
commit
f270402fca
@ -16,19 +16,15 @@ public class IslandTop extends CompositeCommand {
|
||||
}
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user