Fix Border with Enderpearl #23
@ -41,6 +41,10 @@ public class PlayerMoveListener implements Listener {
|
||||
event.getPlayer().teleport(spawnLocation);
|
||||
return;
|
||||
}
|
||||
if (event.getFrom().toVector().isInAABB(borderMinVector, borderMaxVector)) {
|
||||
event.getPlayer().teleport(spawnLocation);
|
||||
return;
|
||||
}
|
||||
if (!to.toVector().isInAABB(borderMinVector, borderMaxVector)) {
|
||||
event.getPlayer().teleport(event.getFrom());
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren