Hotix Border
Dieser Commit ist enthalten in:
Ursprung
98b25650e4
Commit
1dcc2335c5
@ -37,7 +37,7 @@ public class PlayerMoveListener implements Listener {
|
||||
@EventHandler
|
||||
public void handleWorldBorder(PlayerMoveEvent event) {
|
||||
Location to = event.getTo();
|
||||
if (to.getY() < 0) {
|
||||
if (to.getY() < Config.BorderMinY) {
|
||||
event.getPlayer().teleport(spawnLocation);
|
||||
}
|
||||
if (!to.toVector().isInAABB(borderMinVector, borderMaxVector)) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren