Fix Border with Enderpearl
Dieser Commit ist enthalten in:
Ursprung
0f5b978b62
Commit
633c182cfa
@ -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