1. 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.
     
  2. Wulf

    Wulf Community Admin

    What is the exact code you are using? I'm having no issues triggering it.

    4a909e6c83bc78a321a04d9b4edbd5e7.png
     
  3. 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);
            }
    I'll continue trying...
     
  4. Wulf

    Wulf Community Admin

    I'd recommend using Oxide's API for chat sending, not calling the game directly.
    Code:
    hurt.SendChatMessage(player, "testrespawnmessageblabla");