mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2025-08-18 01:25:45 +00:00
queue cmd fix
This commit is contained in:
parent
1afde080aa
commit
f7e889bac3
@ -47,9 +47,13 @@ public class CmdQueue implements RTPCommand {
|
|||||||
|
|
||||||
private void queueWorlds(Player p) { //All worlds
|
private void queueWorlds(Player p) { //All worlds
|
||||||
List<String> info = new ArrayList<>();
|
List<String> info = new ArrayList<>();
|
||||||
for (World w : Bukkit.getWorlds())
|
int locs = 0;
|
||||||
info.addAll(queueGetWorld(p, w));
|
for (World w : Bukkit.getWorlds()) {
|
||||||
info.add("&eTotal of &a%amount% &egenerated locations".replace("%amount%", String.valueOf(info.size())));
|
List<String> list = queueGetWorld(p, w);
|
||||||
|
info.addAll(list);
|
||||||
|
locs += list.size();
|
||||||
|
}
|
||||||
|
info.add("&eTotal of &a%amount% &egenerated locations".replace("%amount%", String.valueOf(locs)));
|
||||||
sendInfo(p, info);
|
sendInfo(p, info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user