mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2025-08-17 17:15:47 +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
|
||||
List<String> info = new ArrayList<>();
|
||||
for (World w : Bukkit.getWorlds())
|
||||
info.addAll(queueGetWorld(p, w));
|
||||
info.add("&eTotal of &a%amount% &egenerated locations".replace("%amount%", String.valueOf(info.size())));
|
||||
int locs = 0;
|
||||
for (World w : Bukkit.getWorlds()) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user