setvariable `save` option does not save on CASTER or TARGET scope

Summary

setting a variable with the save option doesn't save the variable after a restart if its scope is CASTER or TARGET.

Steps to reproduce

  • setvariable{save=true;var=caster.test;value=120;type=INTEGER;scope=caster} @self ~onSpawn
  • msg{m="<caster.var.test>"} @trigger ~onInteract

/stop one mob is spawned, right click mob once the server is back up. Make sure mob is set to persistent or despawn: false.

Server log file

Provide a link to a Pastebin paste with a copy of your server's latest.log file from startup to "Done!" AND includes a player connecting.

Debug log snippet

https://pastebin.com/1GEuyTDG

Edited Jul 08, 2024 by JpegIsMe
Assignee Loading
Time tracking Loading