Started by
Nosferatu8
on
Topic category: General discussion
Hello everyone. Is there a way to save added attributes for players/armors by command?
Everytime my player dies it's loosing all it's attributes and reseting back to vanilla values. Any solution to this?
One idea is to use global variables of the Player _Persistent type to store attribute values. When a player dies or rejoins the server, the attributes are reset. But if you have a MAXHEALTH variable you do the following. When a player is revived or logs into the server: Set attribute max_health to [get global MAXHEALTH]