Notify player when teleport could not succeed

This commit is contained in:
Ruakij 2021-05-11 09:53:30 +02:00
parent 1eb472b576
commit 973897cc3e

View File

@ -77,6 +77,7 @@ public class OnCustomPlayerMove implements CustomPlayerMoveEventListener {
} }
if(lbtBlockPartner == null){ if(lbtBlockPartner == null){
// No other partner // 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) // Set player as ignored on this LinkedBeaconTeleporter (so he wont trigger the checks again)
playerBeaconLocation.put(uuid, lbtBlock); playerBeaconLocation.put(uuid, lbtBlock);
@ -94,6 +95,7 @@ public class OnCustomPlayerMove implements CustomPlayerMoveEventListener {
if(safeBlock == null){ if(safeBlock == null){
// No safe location found // No safe location found
p.sendMessage("§cNo safe-location found at target teleporter");
return; return;
} }
// TODO: Check if there is enough space for a player // TODO: Check if there is enough space for a player