Qbox-project / qbx_core

http://qbox-project.github.io
Other
46 stars 109 forks source link

fix(server/player): only set state when possible #440

Closed solareon closed 2 months ago

solareon commented 2 months ago

Description

Trying to set a statebag when the player is offline probably ain't gonna work. This moves these set events into a conditional that should correct issues with offline player data management

Checklist

solareon commented 2 months ago

Fixes https://github.com/Qbox-project/qbx_management/issues/56

solareon commented 2 months ago

What about setMetadata?

Also could move the var creation into the if source statement

good catch. Was looking for the localized state and missed this one