Use internal yaml resource for unsafe blocks by key, remove caching, fixes

This commit is contained in:
William committed 2022-11-23 21:51:23 +00:00
1 parent c4b16db9a9
commit a3ea62a85c
11 files changed
+215 -269

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ error_invalid_teleport_request: '[Error:](#ff3300) [You do not have a pending te
error_teleport_request_self: '[Error:](#ff3300) [You cannot send a teleport request to yourself.](#ff7e5e)'
error_player_not_found: '[Error:](#ff3300) [Could not find the player %1%.](#ff7e5e)'
error_rtp_restricted_world: '[Error:](#ff3300) [You cannot randomly teleport in this world.](#ff7e5e)'
error_rtp_cooldown: '[Error:](#ff3300) [You must wait %1% minutes before randomly teleporting again.](#ff7e5e)'
error_rtp_cooldown: '[Error:](#ff3300) [You must wait %1% minute(s) before randomly teleporting again.](#ff7e5e)'
error_command_disabled: '[Error:](#ff3300) [That command is disabled!](#ff7e5e)'
error_console_command_only: '[Error:](#ff3300) [That command can only be run from the server console.](#ff7e5e)'
error_rtp_randomization_timeout: '[Error:](#ff3300) [Failed to find a safe random location to teleport you.](#ff7e5e)'
@@ -0,0 +1,25 @@
# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
# ┃ Unsafe /rtp Blocks ┃
# ┃ Developed by William278 ┃
# ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
unsafe_blocks:
- 'minecraft:water'
- 'minecraft:lava'
- 'minecraft:fire'
- 'minecraft:flowing_water'
- 'minecraft:flowing_lava'
- 'minecraft:standing_sign'
- 'minecraft:wall_sign'
- 'minecraft:chest'
- 'minecraft:trapped_chest'
- 'minecraft:ender_chest'
- 'minecraft:bed'
- 'minecraft:jungle_leaves'
- 'minecraft:spruce_leaves'
- 'minecraft:bedrock'
- 'minecraft:powder_snow'
- 'minecraft:air'
- 'minecraft:cave_air'
- 'minecraft:void_air'
- 'minecraft:pointed_dripstone'
- 'minecraft:cactus'