HuskHomes
HuskHomes copied to clipboard
Add hooks for preventing random teleports in regions/claimed land
The server has many player-owned areas (similar to protected areas like WorldGuard), and random teleportation sometimes sends players to private areas. Is it possible to add a check so that if the destination is within a plugin-protected range, it finds the next random teleportation point? (Is it possible to detect whether the destination is a protected area by simulating player block destruction?)
If you add the hook to detect protected areas, please also consider treating the /land spawn command as a teleportation event. This would allow proper support for the /back command after teleporting to a land.