13
0

Update TeamPlayer
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-03-26 12:02:03 +01:00
Ursprung bff707178e
Commit 55b1a26b6a

Datei anzeigen

@ -58,41 +58,23 @@ public class TeamPlayer extends BasicListener {
entities.forEach((entity, npc) -> entity.remove()); entities.forEach((entity, npc) -> entity.remove());
} }
private void forceLoad(World world, boolean setTo) {
for (int x = -10; x < 10; x++) {
for (int z = -10; z < 10; z++) {
world.setChunkForceLoaded(95 + x , 93 + z, setTo);
}
}
}
{ {
World world = Bukkit.getWorld("Lobby"); World world = Bukkit.getWorlds().get(0);
for (int x = -10; x < 10; x++) { forceLoad(world, true);
for (int z = -10; z < 10; z++) {
world.setChunkForceLoaded(95 + x , 93 + z, true);
}
}
world.getEntitiesByClasses(Villager.class).forEach(Entity::remove); world.getEntitiesByClasses(Villager.class).forEach(Entity::remove);
for (int x = -10; x < 10; x++) { forceLoad(world, false);
for (int z = -10; z < 10; z++) {
world.setChunkForceLoaded(95 + x , 93 + z, true); SteamwarUser.getServerTeam().forEach(user -> {
} spawnTeamPlayer(world, user.getUserName());
} });
spawnTeamPlayer(world, "AdmiralSeekrank");
spawnTeamPlayer(world, "SalzgehaltSensei");
spawnTeamPlayer(world, "Sehfxhler");
spawnTeamPlayer(world, "Tim7077");
spawnTeamPlayer(world, "LordMainex");
spawnTeamPlayer(world, "Lixi266");
spawnTeamPlayer(world, "PxlPain");
spawnTeamPlayer(world, "KopFilme");
spawnTeamPlayer(world, "Lixfel");
spawnTeamPlayer(world, "Chaoscaot");
spawnTeamPlayer(world, "YoyoNow");
spawnTeamPlayer(world, "Zeanon");
spawnTeamPlayer(world, "zOnlyKroks");
spawnTeamPlayer(world, "Legula");
spawnTeamPlayer(world, "xJoul");
spawnTeamPlayer(world, "Maybe_Creative");
spawnTeamPlayer(world, "Tim16227");
spawnTeamPlayer(world, "FoehnX");
spawnTeamPlayer(world, "_Noerf_");
spawnTeamPlayer(world, "Edmund_Strong");
spawnTeamPlayer(world, "TheBreadBeard");
spawnTeamPlayer(world, "Basic_Redstone");
Bukkit.getScheduler().runTaskTimer(LobbySystem.getPlugin(), () -> { Bukkit.getScheduler().runTaskTimer(LobbySystem.getPlugin(), () -> {
entities.forEach((entity, npc) -> { entities.forEach((entity, npc) -> {