mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 13:07:16 +01:00
Add locations to spawnpoint coverage warning.
This commit is contained in:
parent
0282655fbf
commit
e8fbc6d2f7
@ -42,7 +42,12 @@ public class WaveUtils
|
|||||||
|
|
||||||
// If no spawnpoints in range, just return all of them.
|
// If no spawnpoints in range, just return all of them.
|
||||||
if (result.isEmpty()) {
|
if (result.isEmpty()) {
|
||||||
Messenger.warning("Spawnpoints of arena '" + arena.configName() + "' may be too far apart!");
|
String locs = "";
|
||||||
|
for (Player p : players) {
|
||||||
|
Location l = p.getLocation();
|
||||||
|
locs += "(" + l.getBlockX() + "," + l.getBlockY() + "," + l.getBlockZ() + ") ";
|
||||||
|
}
|
||||||
|
Messenger.warning("The following locations in arena '" + arena.configName() + "' are not covered by any spawnpoints:" + locs);
|
||||||
return spawnpoints;
|
return spawnpoints;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user