From 973897cc3eb1a200bf299f431b157886689cc7fd Mon Sep 17 00:00:00 2001 From: Ruakij Date: Tue, 11 May 2021 09:53:30 +0200 Subject: [PATCH] Notify player when teleport could not succeed --- .../LinkedBeaconTeleporters/listener/OnCustomPlayerMove.java | 2 ++ 1 file changed, 2 insertions(+) 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 e201a9f..ee6e703 100644 --- a/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/listener/OnCustomPlayerMove.java +++ b/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/listener/OnCustomPlayerMove.java @@ -77,6 +77,7 @@ public class OnCustomPlayerMove implements CustomPlayerMoveEventListener { } if(lbtBlockPartner == null){ // No other partner + p.sendMessage("§cNo linked beacon found with id §7"+ lbtBlock.teleporterId()); // Set player as ignored on this LinkedBeaconTeleporter (so he wont trigger the checks again) playerBeaconLocation.put(uuid, lbtBlock); @@ -94,6 +95,7 @@ public class OnCustomPlayerMove implements CustomPlayerMoveEventListener { if(safeBlock == null){ // No safe location found + p.sendMessage("§cNo safe-location found at target teleporter"); return; } // TODO: Check if there is enough space for a player