Safety System
PracRTP performs multiple checks before confirming a teleport destination to ensure the player always lands somewhere safe.
Built-in Checks
| Check | Config Key | Default |
|---|---|---|
| Water | safety.deny_water | true |
| Lava | safety.deny_lava | true |
| Mid-air (void/air) | safety.deny_air | true |
| Underground / Cave | safety.deny_cave | true |
| Custom materials | safety.deny_materials | FIRE, MAGMA_BLOCK, CACTUS… |
| Minimum Y level | safety.min_y | 62 |
| Maximum Y level | safety.max_y | -1 (no limit) |
Custom Material Blacklist
Add any Bukkit Material name to deny_materials:
yaml
safety:
deny_materials:
- FIRE
- MAGMA_BLOCK
- CACTUS
- SWEET_BERRY_BUSH
- POWDER_SNOWHow Cave Detection Works
After finding the highest block at a random X/Z coordinate, the plugin scans upward to the world ceiling. If any solid block exists above that point, the location is considered underground and is rejected.
⚠️ Increase
max_tries if your world has heavy terrain generation and players often see "Could not find a safe location".Player Distance Check
| Key | Description |
|---|---|
| distance_from_players.enabled | Enable / disable check |
| distance_from_players.min_distance | Minimum blocks from any online player |
| distance_from_players.min_distance_from_spawn | Minimum blocks from world spawn (0 = off) |