Archiviert
13
0
Dieser Commit ist enthalten in:
jojo 2021-01-02 15:00:17 +01:00
Ursprung 1dcc2335c5
Commit cbae04d39c

Datei anzeigen

@ -37,7 +37,7 @@ public class PlayerMoveListener implements Listener {
@EventHandler @EventHandler
public void handleWorldBorder(PlayerMoveEvent event) { public void handleWorldBorder(PlayerMoveEvent event) {
Location to = event.getTo(); Location to = event.getTo();
if (to.getY() < Config.BorderMinY) { if (to.getY() <= Config.BorderMinY) {
event.getPlayer().teleport(spawnLocation); event.getPlayer().teleport(spawnLocation);
} }
if (!to.toVector().isInAABB(borderMinVector, borderMaxVector)) { if (!to.toVector().isInAABB(borderMinVector, borderMaxVector)) {