Not sure what you did in the code here, but the latest update breaks the game.
When joining a world with it installed in the server, the character will spaz out, spinning, at some unknown world position, with only the heightmap loaded, and then the game pushed you back out to menu.
the bepinex log is spamming this at an extreme rate the entire time, repeating.
[Error : Unity Log] ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Stack trace:
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <4449e9424e7e4d4d81a660907c68cb97>:0)
ZNet.SetCharacterID (ZDOID id) (at <030acc1fa99247f68cf8ec1aed3604d6>:0)
(wrapper dynamic-method) Game.DMD<Game::SpawnPlayer>(Game,UnityEngine.Vector3,bool)
Game.UpdateRespawn (System.Single dt) (at <030acc1fa99247f68cf8ec1aed3604d6>:0)
Game.FixedUpdate () (at <030acc1fa99247f68cf8ec1aed3604d6>:0)