Allow TP *ONLY* from Safe ZonesSolved

Hello!

I see there are ways to block safe zone tps, and there are ways to enable special tps to safe zones and back, but is there a way to restrict /home usage so that users can only use `/home` from a safe zone, and will be denied anywhere else?

I have looked into using Zone Manager for this, but doing it would require the creation of a global zone with child zones, and creating a zone that large crashed my server.

there's no option for this but I will add it.

Merged post

in the mean time you easily add this yourself (it will be optional in the update so the option for this is missing in order to make this edit simple)

find:

var countdown = GetLower(player, config.Home.VIPCountdowns, config.Home.Countdown);​

and add these lines above it:

            if (!player.InSafeZone())
            {
                PrintMsg(player, "You can only teleport home from within a safe zone!");
                return;
            }​

Yep! I actually already added this functionality myself at the time in a fairly similar way, but I appreciate you posting, and I doubly appreciate you adding it in eventually! It was fun figuring it out and your code is very clean, which made for a nice first time writing any C# in like seven years, lol.

Thanks again for all the great work you do!

Locked automatically