Location Variables Do Not Save on Non-Primary Worlds
ThePuppy1 opened this issue ยท 3 comments
[Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[Skript] Server Version: git-Paper-408 (MC: 1.20.4)
[Skript] Skript Version: 2.8.2 (skriptlang-github)
[Skript] Installed Skript Addons:
[Skript] - SkBee v3.2.1 (https://github.com/ShaneBeee/SkBee)
[Skript] Installed dependencies: None
Bug Description
With two server worlds the seconds one (the one you do not spawn into) location variables do not save on restart (turn off then back on).
Expected Behavior
The location was supposed to stay saved in the variables.csv but instead file on starting back up the server it disappears.
Steps to Reproduce
This can be replicated by making code (like in the code bellow) that saves a location and then using that code in a secondary world in which the player does not spawn then restarting the server.
Reference Code to Duplicate the Error:
on place:
if block is dirt:
#Duplicate Removing
remove location of event-block from {dirt::*}
broadcast "&7Place Dirt"
add location of event-block to {dirt::*}
broadcast "%{dirt::*}%"
on break:
if block is dirt:
broadcast "&7Broke Dirt"
remove location of event-block from {dirt::*}
broadcast "%{dirt::*}%"
Errors or Screenshots
No response
Other
I have looked up this error but have been unable to find any one with the same problem.
Agreement
- I have read the guidelines above and affirm I am following them with this report.
iirc this is a duplicate issue but the issue is due to worlds not being loaded on startup when skript is copying over variables from file. if the world does not exist skript just fails