Rash_SR wrote:Hello Guys!
I want to code a plugin! if a player died you can click "Respawn" or "back to title". i want to skip this process that a player respawned instant without clicking something.
so i code a playerdeathhook and tried it with "player.closeWindow();" but nothing happend. Someone knows a helpfull solution?
Thanks for help!
I don't actually think CanaryLib can do this. I think because it would be messing with the client which Canary can't do. I think.
I don't really remember what it can and cannot do. It's been such a long time.
Sorry if I wasn't of any help.
Edit: I just had an idea. There is a possibility of this working but it's hard for me to put into words.
You could check the players health right, then when it goes under a certain mark like half a heart remaining send a message saying they died and respawn the player elsewhere. It's a very
crude way of doing it but hey it works right? I wonder if you can add 'phantom hearts'. That way the hearts can go fully down but the character still live. I really have no idea what I'm talking about now but just throwing some ideas. (fuck I need to complete my degree)