Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ommand /maincore [<text>] [<text>]:
- permission: *
- trigger:
- if arg 1 is "reload":
- set {chatoff.en} to true
- execute console command "gamerule doDaylightCycle false"
- execute console command "gamerule doWeatherCycle false"
- wait 2 seconds
- broadcast "&6&lMulti&7&l-&e&lNetwork&f(Main Core) &7&l> &aReloading %(size of {maincore.skripty::*})% scripts!"
- broadcast "&6&lMulti&7&l-&e&lNetwork&f &7&l> &aThere may be lags"
- wait 1 second
- set {_size} to size of {maincore.skripty::*}
- set {_addprc} to 100 / {_size}
- broadcast "&6&lMulti&7&l-&e&lNetwork&f &7&l> &f0%%"
- set {_srd} to 0
- wait 1 tick
- loop {maincore.skripty::*}:
- execute console command "sk reload %loop-value%"
- add {_addprc} to {_srd}
- broadcast "&6&lMulti&7&l-&e&lNetwork&f &7&l> &f%{_srd}%%%"
- wait 5 ticks
- execute player command "maincore-comp"
- wait 1 second
- delete {chatoff.en}
- execute console command "gamerule doDaylightCycle true"
- execute console command "gamerule doWeatherCycle true"
- else if arg 1 is "scadd":
- set {maincore.skripty::%arg 2%} to "%arg 2%"
- send "Pลidรกn do main relaodu skript %arg 2%"
- else if arg 1 is "sclist":
- if size of {maincore.skripty::*} is 0:
- send "&cEmpty list"
- stop
- send "&6&lMulti&7&l-&e&lNetwork&f &7&l> List:"
- loop {maincore.skripty::*}:
- send "%loop-value%"
- else if arg 1 is "singlecore":
- if arg 2 is set:
- set {chatoff.en} to true
- wait 1 second
- broadcast "&6&lMulti&7&l-&e&lNetwork&f(Main Core) &7&l> &aReloading Single script!"
- broadcast "&6&lMulti&7&l-&e&lNetwork&f &7&l> &aThere may be lags"
- wait 1 tick
- execute console command "sk reload %arg 2%"
- wait 1 tick
- execute player command "/maincore-comp"
- wait 1 second
- delete {chatoff.en}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement