• Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

VoiderYT

Member
Jul 9, 2024
2
0
1
I am trying to make a skript thingy that stores a variable (in my case, a list) but when I restart the server, it resets the variable. How would I avoid that?

Here is an example (not my case but just a general idea):
Code:
command /sethome:
    trigger:
        set {home} to location of player

command /home:
    trigger:
        teleport player to {home}
 
This might a server environment thing. Global location variables should be able to save; How are you hosting your server?
 
This might a server environment thing. Global location variables should be able to save; How are you hosting your server?
Paper version 1.20.6-148. I only have skript, via version and via backwards installed.
By the way, it's not a location variable, it is a list that contains blocks and items(like grass block, stone hoe and diamond). (I just gave that example to show a situation that others can relate)