Honestly, I wrote this so long ago that I don't remember why I didn't submit this PR then. It seems feature complete though. Basically, the changes are:
1) Use the new player metadata API if it's available, falling back to the old behaviour.
2) Don't store the stamina HUD ID as player metadata; just store it in memory.
Honestly, I wrote this so long ago that I don't remember why I didn't submit this PR then. It seems feature complete though. Basically, the changes are:
1) Use the new player metadata API if it's available, falling back to the old behaviour. 2) Don't store the stamina HUD ID as player metadata; just store it in memory.