Skript load script (.sk file) event?

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

piter909

Member
Jan 30, 2017
10
1
0
28
Is in skript any event that is called when .sk file is loaded? Like when "/skript load file" or "/skript reload file" is used or when skript on server enable is loading scripts?

Thanks for any help
 
I was meaning event in java (look at category), not in skript language :emoji_stuck_out_tongue:
I want to create debug loader in my addon, like "filename.sk started loading / filename.sk is loaded!" and the same on .sk file unload if it is possible.
As you probably know, some scripts can load longer because of effects like play sound or play particles. My scripts are loading around 2 minutes 30 secs. This is the cause :emoji_stuck_out_tongue:.
 
Umm, you can maybe use the "ScriptEvent". In fact, skript only calls the "on load" event once the parser reaches that line. Meaning that everything else is already parsed & loaded. So if you want to do something right after the script is loaded you should just add an "on load" event at the end of your script.