Using deprecated hook 'OnPlayerCorpse'Fixed
'Backpacks v3.2.1' is using deprecated hook 'OnPlayerCorpse', which will stop working on Friday, 01 January 2021. Please ask the author to update to 'OnPlayerCorpseSpawned(BasePlayer player, BaseCorpse corpse)'
I've submitted a pull request on the GitHub repo to update this, so it's just a matter of time until LaserHydra can review and merge it.



That is the error i see in the console.  Just wanted to give a headsup.  Many thanks for your great work on this plugin !:)

EDIT: Oh sorry i just see in the notifications this topic already was getting worked on.  Great ! 

Warning from my console. I´m pretty sure I´m not the only one that noticed it.

If a thread like this already exists, please delete mine.

 

16:36:20 'Backpacks v3.2.1' is using deprecated hook 'OnPlayerCorpse', which will stop working on Friday, 01 January 2021. Please ask the author to update to 'OnPlayerCorpseSpawned(BasePlayer player, BaseCorpse corpse)'

5dddc0ab48dae.jpg WaveHolder

Warning from my console. I´m pretty sure I´m not the only one that noticed it.

If a thread like this already exists, please delete mine.

 

16:36:20 'Backpacks v3.2.1' is using deprecated hook 'OnPlayerCorpse', which will stop working on Friday, 01 January 2021. Please ask the author to update to 'OnPlayerCorpseSpawned(BasePlayer player, BaseCorpse corpse)'

its actually at the top of the page !   :) 

Yeah same here.

'Backpacks v3.2.1' is using deprecated hook 'OnPlayerCorpse', which will stop working on Friday, 01 January 2021. Please ask the author to update to 'OnPlayerCorpseSpawned(BasePlayer player, BaseCorpse corpse)'
FRIDAY JANUARY 1st , so WHERE is the panic,
So when is this gonna be fixed?
5b7d22c4ef71f.jpg pookins
FRIDAY JANUARY 1st , so WHERE is the panic,

Yeah you still have 2 months but that doesn't mean you shouldn't update it. Also it is the job of a server owner to make sure you dont get warnings and errors in the console so there's that. It is distracting too. No reason to not update it as soon as possible.

Some other features are being included in the next release and it takes time to properly review and test them. Thank you for your patience.
Goldie

Yeah you still have 2 months but that doesn't mean you shouldn't update it. Also it is the job of a server owner to make sure you dont get warnings and errors in the console so there's that. It is distracting too. No reason to not update it as soon as possible.

As the server owner is the only one to see the console it doesnt really make any difference does it ? and you only get the warning once each time you restart the server, it doesnt appear any other time.
Is the plugin working ? is your server crashing ?
SO have patience and wait for the fix for an invisible non threatening hook warning.

Find and replace all `OnPlayerCorpse` with `OnPlayerCorpseCreate`, there should be only two mentions of it on lines 226 and 74.
5f5631c33fa20.png misticos
Find and replace all `OnPlayerCorpse` with `OnPlayerCorpseCreate`, there should be only two mentions of it on lines 226 and 74.
OnPlayerCorpseCreated if it uses the corpse.
OnPlayerCorpseSpawned then* sorry.
5b7d22c4ef71f.jpg pookins

its actually at the top of the page !   :) 

Yes, I made a new post about it but Admin merged my post here. Thats why i may seem blind.

Locked automatically