HuskHomes icon indicating copy to clipboard operation
HuskHomes copied to clipboard

Add hooks for preventing random teleports in regions/claimed land

Open Huge-mistake opened this issue 1 year ago • 1 comments

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?)

Huge-mistake avatar Nov 27 '24 09:11 Huge-mistake

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.

JrouleEnGolf5 avatar Jul 28 '25 13:07 JrouleEnGolf5