itsKimo Posted November 29, 2021 Share Posted November 29, 2021 (edited) 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 December 18, 2021 by itsKimo Link to comment Share on other sites More sharing options...
_Tarna_ Posted November 29, 2021 Share Posted November 29, 2021 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 --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Mrbizarre Posted December 1, 2021 Share Posted December 1, 2021 very nice Link to comment Share on other sites More sharing options...
itsKimo Posted December 11, 2021 Author Share Posted December 11, 2021 (edited) 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 December 18, 2021 by itsKimo Link to comment Share on other sites More sharing options...
itsKimo Posted December 18, 2021 Author Share Posted December 18, 2021 (edited) bump Edited December 18, 2021 by itsKimo Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now