Added locale for AdminLevelStatusCommand

This commit is contained in:
tastybento 2020-06-21 18:47:10 -07:00
parent d5c4e3a53c
commit 56530cecc1
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package world.bentobox.level.commands;
import java.util.List;
import world.bentobox.bentobox.api.commands.CompositeCommand;
import world.bentobox.bentobox.api.localization.TextVariables;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.level.Level;
@ -24,7 +25,7 @@ public class AdminLevelStatusCommand extends CompositeCommand {
@Override
public boolean execute(User user, String label, List<String> args) {
user.sendRawMessage("Islands in queue: " + addon.getPipeliner().getIslandsInQueue());
user.sendMessage("islands-in-queue", TextVariables.NUMBER, String.valueOf(addon.getPipeliner().getIslandsInQueue()));
return true;
}
}

View File

@ -7,6 +7,9 @@ admin:
level:
parameters: "<player>"
description: "calculate the island level for player"
levelstatus:
description: "show how many islands are in the queue for scanning"
islands-in-queue: "&a Islands in queue: [number]"
top:
description: "show the top ten list"
unknown-world: "&c Unknown world!"