From c732aa31b1c8cfa1762909bead29e891f3f83366 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Tue, 11 May 2021 11:10:24 +0200 Subject: [PATCH] Set player to ignore-list if teleport didnt succeed --- .../LinkedBeaconTeleporters/listener/OnCustomPlayerMove.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/listener/OnCustomPlayerMove.java b/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/listener/OnCustomPlayerMove.java index 6d1784d..b86b049 100644 --- a/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/listener/OnCustomPlayerMove.java +++ b/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/listener/OnCustomPlayerMove.java @@ -95,6 +95,7 @@ public class OnCustomPlayerMove implements CustomPlayerMoveEventListener { if(safeBlock == null){ // No safe location found p.sendMessage("§cNo safe-location found at target teleporter"); + playerBeaconLocation.put(uuid, lbtBlock); return; } // TODO: Check if there is enough space for a player