mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-06-26 06:25:00 +02:00
Fix issue when /bsbadmin top returns weird string. Relates to issue #24.
In lang file was missing admin.topten variable.
This commit is contained in:
parent
c40c9c4044
commit
4f384989bb
|
@ -45,8 +45,13 @@ public class AdminTop 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 = String.valueOf(rank) + ":" + island.getName() + " "
|
String item = user.getTranslation("admin.topten",
|
||||||
+ user.getTranslation("topten.islandLevel", "[level]", String.valueOf(topTen.getValue()));
|
"[rank]",
|
||||||
|
"[name]",
|
||||||
|
"[level]",
|
||||||
|
String.valueOf(rank),
|
||||||
|
this.getPlugin().getPlayers().getUser(island.getOwner()).getName(),
|
||||||
|
String.valueOf(topTen.getValue()));
|
||||||
user.sendRawMessage(item);
|
user.sendRawMessage(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,8 @@ 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]"
|
||||||
|
|
||||||
island:
|
island:
|
||||||
level:
|
level:
|
||||||
parameters: "[player]"
|
parameters: "[player]"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user