MisterBasic

Download AntiSwear

Nov 13th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. # AntiSwear Download!
  2. on load:
  3. if "plugins\Skript\scripts\AntiSwear.sk" does not exist:
  4. create dir "plugins\AntiSwear"
  5. create file "plugins\Skript\scripts\AntiSwear.sk"
  6. create file "plugins\AntiSwear\config.yml"
  7. download file from "https://pastebin.com/raw/Rx4eHihQ" to file "plugins\AntiSwear\config.yml"
  8. download file from "https://pastebin.com/raw/AHsnGjMs" to file "plugins\Skript\scripts\AntiSwear.sk"
  9. broadcast "AntiSwear Downloaded!"
  10. if "plugins\Skript\scripts\AntiSwear.sk" exists:
  11. stop
  12. command /dl [<text>]:
  13. executable by: players and console
  14. trigger:
  15. player has permission "antiswear.download"
  16. send "Downloading..."
  17. wait a tick
  18. make console execute "/skript reload %script name%.sk"
  19. send "Reloaded!"
Add Comment
Please, Sign In to add comment