9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 11:39:07 +00:00

Pregenerator tweaks

This commit is contained in:
Daniel Mills
2021-07-16 06:34:28 -04:00
parent 7ead247fcb
commit c828625cc1
2 changed files with 19 additions and 4 deletions

View File

@@ -73,4 +73,19 @@ public class IrisWorlds {
return false;
}
public static boolean evacuate(World world, String m) {
for (World i : Bukkit.getWorlds()) {
if (!i.getName().equals(world.getName())) {
for (Player j : world.getPlayers()) {
new VolmitSender(j, Iris.instance.getTag()).sendMessage("You have been evacuated from this world. " + m);
j.teleport(i.getSpawnLocation());
}
return true;
}
}
return false;
}
}