Skip to content

Commit

Permalink
Fixed admin topten display
Browse files Browse the repository at this point in the history
  • Loading branch information
Poslovitch committed Dec 23, 2018
1 parent 8703e7c commit 456e278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ public boolean execute(User user, String label, List<String> args) {
Island island = getPlugin().getIslands().getIsland(world, topTen.getKey());
if (island != null) {
rank++;
String item = user.getTranslation("admin.topten",
user.sendMessage("admin.top.display",
"[rank]",
"[name]",
"[level]",
String.valueOf(rank),
"[name]",
this.getPlugin().getPlayers().getUser(island.getOwner()).getName(),
"[level]",
String.valueOf(topTen.getValue()));
user.sendRawMessage(item);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ admin:
top:
description: "show the top ten list"
unknown-world: "&cUnknown world!"
topten: "[rank]. [name] - island level = [level]"
display: "&f[rank]. &a[name] &7- &b[level]"

island:
level:
Expand Down

0 comments on commit 456e278

Please sign in to comment.