From 884184006c9e3457b6144e0d73b4f211c733dd4e Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 10 May 2021 14:30:49 +0200 Subject: [PATCH] Added player to ignoreList even on unsuccessful teleport --- .../LinkedBeaconTeleporters/listener/OnCustomPlayerMove.java | 3 +++ 1 file changed, 3 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 5d4a7e8..aaaef60 100644 --- a/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/listener/OnCustomPlayerMove.java +++ b/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/listener/OnCustomPlayerMove.java @@ -76,6 +76,9 @@ public class OnCustomPlayerMove implements CustomPlayerMoveEventListener { } if(lbtBlockPartner == null){ // No other partner + + // Set player as ignored on this LinkedBeaconTeleporter (so he wont trigger the checks again) + playerBeaconLocation.put(uuid, lbtBlock); } else{ // Set player as ignored on target-LinkedBeaconTeleporter (so he wont trigger the teleport again)