mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-05 02:10:59 +01:00
Fixed admin topten display
This commit is contained in:
parent
8703e7c262
commit
456e278d11
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user