CivClassic / ExilePearl

For when you really just don't want that dude HERE but don't care if he plays - Paper plugin built for 1.16.5 Minecraft - Anti-grief tool built for players, not mods.
MIT License
0 stars 18 forks source link

Fix failure to find safe spot #81

Open wingzero54 opened 3 years ago

wingzero54 commented 3 years ago

PearlBoundaryTask handles teleporting the exiled player around to attempt to find a safe spot to place them. This is used when an exiled player respawns in a bastion field (or if you move into a bastion field?). The issue is if the bed spawn is set inside a bastion field, you are permanently teleported around in a loop as it is unable to find a safe spot to put you. You also accrue damage inside a bastion field and will get respawned, stuck in a death/teleportation loop.

A fix would either be: a more aggressive pearl boundary task that attempts to move the player further and further away until it finds a safe spot to place the player, OR on failure to find a safe spot and if their spawn is within a hostile bastion field, randomspawn them (ideally not unsetting their spawn either).