MisterBasic

BlixateSkriptInstaller API

Nov 13th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. options:
  2. dir: plugins\\NewFolder # Change "NewFolder" for you're folder's name! Leave blank for none
  3. #
  4. # _______________________
  5. #
  6. pastebin_config: https://pastebin.com/raw/Y2UzT1h7 # Change this to your pastebin / website to download off of! Leave blank for no config.
  7. #
  8. config_file: config.txt # This is the file that will be in your Folder! Leave blank for no file
  9. # _______________________
  10. # _________________________
  11. #
  12. pastebin_skript: https://pastebin.com/raw/Y2UzT1h7 # Change this for you pastebin! This is a example pastebin!
  13. #
  14. skript_name: DefaultName # What your skript name is.
  15. # _________________________
  16.  
  17.  
  18. on load:
  19. set {_dir} to "{@dir}"
  20. send "Installing..." to console
  21. delete directory "{@dir}"
  22. wait a tick
  23. create directory "{@dir}"
  24. download file from "{@pastebin_config}" to file "%{_dir}%\{@config_file}"
  25. delete file "plugins\Skript\scripts\{@skript_name}.sk"
  26. wait a tick
  27. download file from "{@pastebin_skript}" to file "plugins\Skript\scripts\{@skript_name}.sk"
  28. make console execute "/skript reload {@skript_name}.sk"
  29. send "Installed!" to console
Advertisement
Add Comment
Please, Sign In to add comment