Dieser Commit ist enthalten in:
Ursprung
cc15781b44
Commit
a05116a16c
@ -42,7 +42,6 @@ import org.bukkit.event.block.BlockPlaceEvent;
|
||||
import org.bukkit.event.entity.EntityPickupItemEvent;
|
||||
import org.bukkit.event.player.*;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
@ -115,13 +114,11 @@ public class SpectatorListener implements Listener {
|
||||
}
|
||||
|
||||
private static void resendChunks(Player player) {
|
||||
int distance = player.getClientViewDistance();
|
||||
Location location = player.getLocation();
|
||||
for (int x = (int) Math.floor(location.getX() / 16.0) - distance; x <= (int) Math.ceil(location.getX() / 16.0) + distance; x++) {
|
||||
for (int z = (int) Math.floor(location.getZ() / 16.0) - distance; z <= (int) Math.ceil(location.getZ() / 16.0) + distance; z++) {
|
||||
CraftbukkitWrapper.impl.sendChunk(player, x, z);
|
||||
}
|
||||
}
|
||||
Location location = player.getLocation().clone();
|
||||
player.teleport(location.clone().add(16.0 * player.getClientViewDistance(), 0, 16.0 * player.getClientViewDistance()));
|
||||
Bukkit.getScheduler().runTaskLater(BauSystem.getInstance(), () -> {
|
||||
player.teleport(location);
|
||||
}, 5);
|
||||
}
|
||||
|
||||
private boolean anySupervisorOnline(Player player) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren