Skript Reloading Shorthands
- Tested Minecraft Versions:
- Minecraft x.x | (version doesn't matter (propably))
- Skript-dev32 or later
- SkUtilities 0.9.0 or later | https://forums.skunity.com/resources/skutilities.26/
- SkQuery (any) | https://forums.skunity.com/resources/unofficial-skquery-fork-1-6-1-12.68
- Just drop this script anywhere in your scripts folder and reload it.
- Make sure SkUtilities is installed and working.
- Command "/sra"
This is nothing more but a shorthand for the "/skript reload all" command. Seems redundant, but trust me, it's a time saver.
- Command "/srs [<scripts>]"
Allows you to reload certain scripts only ("srs" standing for "skript reload scripts"), however, it also allows you to only load scripts only in a certain folder or scripts sharing a piece of string.
Code (skript (Unknown Language)):/srs lib/ #will only reload scripts in folders called "lib"
/srs functions/helpers/ #will only reload scripts in folders "functions/helpers/"
/srs test.sk #will only reload scripts named "test.sk"
The [<scripts>] argument is optional. If left blank, all of your scripts will be reloaded.
But wait there's more!
Timings will be generated that show you how long each script took to reload (time displayed in milliseconds) and also gives you a total reload-time for all involved scripts:
That's all there is to it.Code (skript (Unknown Language)):priority load : true # whether scripts prefixed with "_" should be loaded before others
priority prefix : _ # this supports multiple characters
print timings : true # if timings should be printed
block native commands : false # blocks usage of the "/skript reload all" and "/skript reload scripts" commands
This simple little script is a huge time saver for me and i hope it will be for you, too.
If you like this resource, please consider buying me a coffee: