Notify player when teleport could not succeed
This commit is contained in:
		
							parent
							
								
									1eb472b576
								
							
						
					
					
						commit
						973897cc3e
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user