2020-06-22 02:54:51 +02:00
|
|
|
package world.bentobox.level.commands;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import world.bentobox.bentobox.api.commands.CompositeCommand;
|
2020-06-22 03:47:10 +02:00
|
|
|
import world.bentobox.bentobox.api.localization.TextVariables;
|
2020-06-22 02:54:51 +02:00
|
|
|
import world.bentobox.bentobox.api.user.User;
|
|
|
|
import world.bentobox.level.Level;
|
|
|
|
|
|
|
|
public class AdminLevelStatusCommand extends CompositeCommand {
|
|
|
|
|
|
|
|
private final Level addon;
|
|
|
|
|
|
|
|
public AdminLevelStatusCommand(Level addon, CompositeCommand parent) {
|
|
|
|
super(parent, "levelstatus");
|
|
|
|
this.addon = addon;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setup() {
|
|
|
|
this.setPermission("admin.levelstatus");
|
|
|
|
this.setOnlyPlayer(false);
|
|
|
|
this.setDescription("admin.levelstatus.description");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean execute(User user, String label, List<String> args) {
|
2020-06-22 03:47:10 +02:00
|
|
|
user.sendMessage("islands-in-queue", TextVariables.NUMBER, String.valueOf(addon.getPipeliner().getIslandsInQueue()));
|
2020-06-22 02:54:51 +02:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|