OnPlayerDeath seems to fire when a player joins the game only and not when they die.
OnPlayerConnected doesn't seem to fire at all.
Anyone else having this issue?
OnPlayerDeath/OnPlayerConnected hooks misfiringSolved
I've not noticed any issues if fully updated, but those hooks were a bit problematic to implement due to the handling I added to make them possible.
I couldn't get the OnPlayerConnected to fire, I used the signature with Common.IPlayer however.
As for OnPlayerDeath, it was firing when I connected to the server but not so much when I actually died. I'm sure something to do with player state as I log in to a world. I'll have to run some more tests after work to verify.
Are you sure you are fully updated?
Updating fixed OnPlayerConnected. OnPlayerDeath still not firing on death.
private void OnPlayerDeath(IPlayer player) {
Logger.Alert($"{player.Name} has died.");
} Locked automatically