Solved Too many variables

  • 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!

Status
Not open for further replies.

Normalguy

Active Member
Apr 19, 2018
98
0
0
24
Skript Version: lastest
Skript Author: Bensku
Minecraft Version: any

Hi I am making anticheat and it makes a lot of variables. I tried delete {_}
But it doens't work :[. I don't want to delete files every time.
 
if i recall correctly variables are only deleted from the file on restarts or something. if your variables dont need to persist restarts you can make certain variables not be saved in the file by editing the config
Code:
# 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 '(?!-).*'.
 
if i recall correctly variables are only deleted from the file on restarts or something. if your variables dont need to persist restarts you can make certain variables not be saved in the file by editing the config
Code:
# 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 '(?!-).*'.
how can i add multiple patterns like
code_language.skript:
        pattern: (?!no.save1,no.save2).*

if is possible
 
Status
Not open for further replies.