Hi all!
At the latest Oxide update it was said that the OnPlayerRespawn hook was reenabled, still when I try to use it, when a player respawned nothing happened. Why?
I just try to send just a message to the player, so it shouldn't be the problem... maybe... i think.
Solved OnPlayerRespawn not triggering
Discussion in 'Hurtworld Development' started by Manfegor, Dec 17, 2015.
-
Wulf Community Admin
What is the exact code you are using? I'm having no issues triggering it.
-
Exact code is just this, I deleted everything else from the plugin to test the respawn, but it seem I make something wrong with it. :/
Code:void OnPlayerRespawn(PlayerIdentity identity, uLink.NetworkPlayer player) { ChatManager.Instance?.AppendChatboxServerSingle("testrespawnmessageblabla", player); }
-
Wulf Community Admin
Code:hurt.SendChatMessage(player, "testrespawnmessageblabla");