35 lines
905 B
Java
35 lines
905 B
Java
package world.bentobox.level.commands;
|
|
|
|
import java.util.List;
|
|
|
|
import world.bentobox.level.Level;
|
|
import world.bentobox.bentobox.api.commands.CompositeCommand;
|
|
import world.bentobox.bentobox.api.user.User;
|
|
|
|
/**
|
|
* @deprecated Renamed and moved to {@link world.bentobox.level.commands.island.IslandTopCommand}.
|
|
*/
|
|
@Deprecated
|
|
public class IslandTop extends CompositeCommand {
|
|
|
|
private final Level plugin;
|
|
|
|
public IslandTop(Level plugin, CompositeCommand parent) {
|
|
super(parent, "top", "topten");
|
|
this.plugin = plugin;
|
|
}
|
|
|
|
@Override
|
|
public void setup() {
|
|
setPermission("island.top");
|
|
setDescription("island.top.description");
|
|
setOnlyPlayer(true);
|
|
}
|
|
|
|
@Override
|
|
public boolean execute(User user, String label, List<String> list) {
|
|
plugin.getTopTen().getGUI(getWorld(), user, getPermissionPrefix());
|
|
return true;
|
|
}
|
|
}
|