My question is: is any solution to make scripts more lightable?
Long story short, No! If you are scripting an entire server (god help your server) this is what is going to happen.
Skript was NEVER MEANT to write entire servers with, it was meant for people to adjust little things on their server. Specifically for customizing what plugins could not do. IF you are writing your entire server with Skript, and it takes 3 minutes to parse your scripts, thats life.
When Skript loads, it has to loop thru all your scripts, all your code, and parse it so the server can understand it.
If it is taking 3 minutes to load, that means 1 of 2 things:
1) You have WAY TOO MUCH CODE, and the server is taking that long to basically translate it into a way it can deal with your events/commands.
2) You have a potato of a server, and it just cant handle what you wrote.
- using "(" or ")" in scripts. For example: if (arg 1 is "test") <-- i just heared its help.
This will do absolutely nothing for parse time. This will basically do nothing at all.
[doublepost=1561508029,1561507921][/doublepost]I also wanted to add, if it takes 3 minutes just for your scripts to load, this greatly shows how your server is going to perform.
My guess is your code is insanely inefficient.
When you log onto your server, everything might be fine. Heck, 10 players
might find it fine. But the second you start getting more players, your server is going to run harder and harder.
Im about 97.49% sure if you get over 20 players, your server will crash quite often. If not crash, then at least your console will be spewing out errors left, right and centre.