Kicked: InsideTerrain: Enforcing (violation of 200)Fixed

With the latest server update/hotfix using:

"Hide an invisible players body under the terrain after disconnect": true

Causes admins to be kicked with "InsideTerrain: Enforcing (violation of 200)" error.

Anyway to resolve this without using "antihack.terrain_protection 0"?

Also coming across this as well.

Same problem

Easiest fix would be adding something like this to stop admins being effected by that kick.

        private object OnPlayerViolation(BasePlayer player, AntiHackType type)
        {
            if (type == AntiHackType.InsideTerrain && player.IsAdmin) return false;
            return null;
        }

where i put this?

rapolanco

where i put this?

on line 351

Salikoko

on line 351

line 351 in Vanish.cs ?  we have the problem when you teleport to 0,0,0.

i cant even log into my server and adding that to line 351 does notthing what is going on.....

Silgir

line 351 in Vanish.cs ?  we have the problem when you teleport to 0,0,0.

Yes, at line 351 in Vanish.cs

Since I added the function in the file, I no longer have a problem when I telport to 0,0,0 and I no longer get kicked under the map.

That fix worked but it should really be added to the official plugin.

quick question ,i am owner and stuck under the map haha,how do i get out,i added that command line

bmgjet

Easiest fix would be adding something like this to stop admins being effected by that kick.

        private object OnPlayerViolation(BasePlayer player, AntiHackType type)
        {
            if (type == AntiHackType.InsideTerrain && player.IsAdmin) return false;
            return null;
        }

That fix worked like a charm for me, thanks!

Remove the administrator check so that there is no error such as "insideterrain violation level 200"
when using: ""Hide the player's invisible body underground after disabling": true, "
please add this to the plugin.

Added a check for this in the latest version. It checks if the player IsInvisible, not IsAdmin.

I keep getting kicked out for the same problem, I've updated the vanish and nothing works. Is it possible to delete my admin and create another one?

Locked automatically