Fixed admin topten display

This commit is contained in:
Florian CUNY 2018-12-23 21:05:55 +01:00
parent 8703e7c262
commit 456e278d11
2 changed files with 4 additions and 5 deletions

View File

@ -51,14 +51,13 @@ public class AdminTopCommand extends CompositeCommand {
Island island = getPlugin().getIslands().getIsland(world, topTen.getKey()); Island island = getPlugin().getIslands().getIsland(world, topTen.getKey());
if (island != null) { if (island != null) {
rank++; rank++;
String item = user.getTranslation("admin.topten", user.sendMessage("admin.top.display",
"[rank]", "[rank]",
"[name]",
"[level]",
String.valueOf(rank), String.valueOf(rank),
"[name]",
this.getPlugin().getPlayers().getUser(island.getOwner()).getName(), this.getPlugin().getPlayers().getUser(island.getOwner()).getName(),
"[level]",
String.valueOf(topTen.getValue())); String.valueOf(topTen.getValue()));
user.sendRawMessage(item);
} }
} }

View File

@ -10,7 +10,7 @@ admin:
top: top:
description: "show the top ten list" description: "show the top ten list"
unknown-world: "&cUnknown world!" unknown-world: "&cUnknown world!"
topten: "[rank]. [name] - island level = [level]" display: "&f[rank]. &a[name] &7- &b[level]"
island: island:
level: level: