Advertisement
patrick11514

Untitled

May 15th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. ommand /maincore [<text>] [<text>]:
  2. permission: *
  3. trigger:
  4. if arg 1 is "reload":
  5. set {chatoff.en} to true
  6. execute console command "gamerule doDaylightCycle false"
  7. execute console command "gamerule doWeatherCycle false"
  8. wait 2 seconds
  9. broadcast "&6&lMulti&7&l-&e&lNetwork&f(Main Core) &7&l> &aReloading %(size of {maincore.skripty::*})% scripts!"
  10. broadcast "&6&lMulti&7&l-&e&lNetwork&f &7&l> &aThere may be lags"
  11. wait 1 second
  12. set {_size} to size of {maincore.skripty::*}
  13. set {_addprc} to 100 / {_size}
  14. broadcast "&6&lMulti&7&l-&e&lNetwork&f &7&l> &f0%%"
  15. set {_srd} to 0
  16. wait 1 tick
  17. loop {maincore.skripty::*}:
  18. execute console command "sk reload %loop-value%"
  19. add {_addprc} to {_srd}
  20. broadcast "&6&lMulti&7&l-&e&lNetwork&f &7&l> &f%{_srd}%%%"
  21. wait 5 ticks
  22. execute player command "maincore-comp"
  23. wait 1 second
  24. delete {chatoff.en}
  25. execute console command "gamerule doDaylightCycle true"
  26. execute console command "gamerule doWeatherCycle true"
  27. else if arg 1 is "scadd":
  28. set {maincore.skripty::%arg 2%} to "%arg 2%"
  29. send "Pล™idรกn do main relaodu skript %arg 2%"
  30. else if arg 1 is "sclist":
  31. if size of {maincore.skripty::*} is 0:
  32. send "&cEmpty list"
  33. stop
  34. send "&6&lMulti&7&l-&e&lNetwork&f &7&l> List:"
  35. loop {maincore.skripty::*}:
  36. send "%loop-value%"
  37. else if arg 1 is "singlecore":
  38. if arg 2 is set:
  39. set {chatoff.en} to true
  40. wait 1 second
  41. broadcast "&6&lMulti&7&l-&e&lNetwork&f(Main Core) &7&l> &aReloading Single script!"
  42. broadcast "&6&lMulti&7&l-&e&lNetwork&f &7&l> &aThere may be lags"
  43. wait 1 tick
  44. execute console command "sk reload %arg 2%"
  45. wait 1 tick
  46. execute player command "/maincore-comp"
  47. wait 1 second
  48. delete {chatoff.en}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement