mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-09-29 06:07:27 +02:00
31 lines
856 B
Java
31 lines
856 B
Java
|
package world.bentobox.level.commands;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
import world.bentobox.bentobox.api.commands.CompositeCommand;
|
||
|
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) {
|
||
|
user.sendRawMessage("Islands in queue: " + addon.getPipeliner().getIslandsInQueue());
|
||
|
return true;
|
||
|
}
|
||
|
}
|