Module player

Source

Functionsยง

get_reason_str ๐Ÿ”’
handle_character_delete
handle_client_disconnect
handle_exit_ingame
handle_possess
FIXME: This code is dangerous and needs to be refactored. We canโ€™t just comment it out, but it needs to be fixed for a variety of reasons. Get rid of this ASAP!
persist_entity ๐Ÿ”’
When a player logs out, their data is queued for persistence in the next tick of the persistence batch update unless the character logging out is dead and has hardcore enabled, in which case the character is deleted instead of being persisted. The player will be temporarily unable to log in during this period to avoid the race condition of their login fetching their old data and overwriting the data saved here.