From 1dcc2335c59912dba59c73f0416ae33ed6b62532 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 2 Jan 2021 14:58:51 +0100 Subject: [PATCH] Hotix Border --- src/de/steamwar/lobby/listener/PlayerMoveListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/lobby/listener/PlayerMoveListener.java b/src/de/steamwar/lobby/listener/PlayerMoveListener.java index 6780405..1090740 100644 --- a/src/de/steamwar/lobby/listener/PlayerMoveListener.java +++ b/src/de/steamwar/lobby/listener/PlayerMoveListener.java @@ -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)) {