|
|
@ -82,6 +82,8 @@ public class OnCustomPlayerMove implements CustomPlayerMoveEventListener {
|
|
|
|
playerBeaconLocation.put(uuid, lbtBlock);
|
|
|
|
playerBeaconLocation.put(uuid, lbtBlock);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
else{
|
|
|
|
|
|
|
|
// TODO: Check if beacon is active
|
|
|
|
|
|
|
|
|
|
|
|
// Set player as ignored on target-LinkedBeaconTeleporter (so he wont trigger the teleport again)
|
|
|
|
// Set player as ignored on target-LinkedBeaconTeleporter (so he wont trigger the teleport again)
|
|
|
|
playerBeaconLocation.put(uuid, lbtBlockPartner);
|
|
|
|
playerBeaconLocation.put(uuid, lbtBlockPartner);
|
|
|
|
|
|
|
|
|
|
|
@ -92,6 +94,7 @@ public class OnCustomPlayerMove implements CustomPlayerMoveEventListener {
|
|
|
|
Material.AIR,
|
|
|
|
Material.AIR,
|
|
|
|
Function.transparentMaterials
|
|
|
|
Function.transparentMaterials
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
// TODO: Check if there is enough space for a player
|
|
|
|
|
|
|
|
|
|
|
|
// Teleport
|
|
|
|
// Teleport
|
|
|
|
e.player().teleport(
|
|
|
|
e.player().teleport(
|
|
|
|