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
|
@Override
|
||||||
public boolean execute(User user, String label, List<String> list) {
|
public void setup() {
|
||||||
if (user.isPlayer()) {
|
setPermission("island.top");
|
||||||
this.plugin.getTopTen().getGUI(getWorld(), user, getPermissionPrefix());
|
setDescription("island.top.description");
|
||||||
}
|
setOnlyPlayer(true);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public boolean execute(User user, String label, List<String> list) {
|
||||||
this.setPermission("island.top");
|
plugin.getTopTen().getGUI(getWorld(), user, getPermissionPrefix());
|
||||||
this.setDescription("island.top.description");
|
return true;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user