Skip to content

Commit

Permalink
Added locale for AdminLevelStatusCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jun 22, 2020
1 parent d5c4e3a commit 56530ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
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;

Expand All @@ -24,7 +25,7 @@ public void setup() {

@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;
}
}
3 changes: 3 additions & 0 deletions src/main/resources/locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit 56530ce

Please sign in to comment.