Jump to content

Easy Skript Reload Skript


itsKimo

Recommended Posts

This is a very easy reload skript I made to easily reload your skripts.

command skr <text>:
	permission: skript.reload
	usage: &c/skr ([all] or a shortened skript file name)
	trigger:
		if arg-1 is "[all]":
			loop all scripts:
				player command "sk reload %loop-value%"
			send "&aSuccessfully reloaded all scripts." to player
			stop
		set {_a::*} to all scripts where [input contains arg-1]
		if size of {_a::*} < 1:
			send "&cNo skripts found." to player
			play sound "block.note_block.bass" to player
			stop
		loop {_a::*}:
			player command "sk reload %loop-value%"
		if size of {_a::*} > 1:
			send "&aSuccessfully reloaded all scripts that contain ""&7%arg-1%&a"", these skripts were: &7%{_a::*}%" to player
		else:
			send "&aSuccessfully reloaded all scripts that contain ""&7%arg-1%&a"", that skript was: &7%{_a::*}%" to player

enjoy, and please dont send hate

 

info: 

type /skr [all]  to reload all of your skripts

type /skr anything to reload a certain skript.

example:

lets say you have 3 skript files, "core.sk", "essentials.sk" and "alle.sk"

if you did /skr e, it would reload all because they all contain e "(e)ssentials", "all(e)" and "cor(e)"

but if you did /skr c it would only reload the core file because its the only one with a c.

and if u wanna just reload one. u can just type /skr core and it would work.

or type /skr co.

 

ENJOY!

Edited by itsKimo
Link to comment
Share on other sites

  • itsKimo changed the title to Easy Skript Reload Skript

You can make this skript to use no player commands cause the effect reload script %string% exists. Also when you did loop all scripts where [input contains arg-1]:, why not just use the variable {_a::*} you set earlier?

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

  • 2 weeks later...
On 11/29/2021 at 6:58 PM, _Tarna_ said:

You can make this skript to use no player commands cause the effect reload script %string% exists. Also when you did loop all scripts where [input contains arg-1]:, why not just use the variable {_a::*} you set earlier?

ah I guess I missed that, I edited it, and i know reload script exists but then it would not send them errors when they reload, which defeats the purpose yk @_Tarna_

Edited by itsKimo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...