Made the island top command "only player"

This commit is contained in:
Florian CUNY 2018-12-23 20:48:03 +01:00
parent dc2cc515f8
commit f270402fca

View File

@ -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;
} }
} }