how to make a variables (not "{_a}") not saving in variables database, i needed to use i anytime with multiple events, after server restart will disapear
will it possible?
will it possible?
Last edited:
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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
set {variable} to whatever
on script load: #(I think that's the event)
delete {variable}
Variables are saved in RAM when the server is loaded then exported to the CSV file so it'll be kind of the same thing.not saving in variables file, something like saving in RAM, after server restart will disapear
# PS: If you don't want some variables to be saved in any database (e.g. variables that contain an %entity% which usually despawn when the server is shut down)
# you can modify the last database's pattern to not match all variables, e.g. use '(?!x_).*' to match all variables that don't start with 'x_'.
# Be very cautious when doing this however as unsaved variables cannot be recovered after the server has been stopped.
# I recommend to use a single character to denote unsaved variables (similar to local variables' '_'), e.g. '-', in which case the last database's pattern should be '(?!-).*'.
default:
# The default "database" is a simple text file, with each variable on a separate line and the variable's name, type, and value separated by commas.
# This is the last database in this list to catch all variables that have not been saved anywhere else.
# You can modify this database freely, but make sure to know what you're doing if you don't want to loose any variables.
type: CSV
pattern: (?!-).*
file: ./plugins/Skript/variables.csv
backup interval: 2 hours