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