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