FlyChestPL

fScripts 1.2

May 4th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. options:
  2. ilosc: 30
  3. on script load:
  4. if folder "plugins/Skript/scripts/fScripts" doesn't exists:
  5. send "&7Nie odnaleziono folderu &2fScript" to all ops
  6. send "&7Tworzenie..." to all ops
  7. create folder "plugins/Skript/scripts/fScripts/config.yml"
  8. if file "plugins/Skript/scripts/fScripts/config.yml" doesn't exists:
  9. send "&7Nie znaleziono pliku &2config.yml" to all ops
  10. send "&7Tworzenie..." to all ops
  11. create file "plugins/Skript/scripts/fScripts/config.yml"
  12. loop {@ilosc} times:
  13. wf "Nazwa %loop-number% skryptu: 'fScripts'" to "plugins/Skript/scripts/fScripts/config.yml"
  14. else:
  15. loop {@ilosc} times:
  16. set {Nazwa_%loop-number%_skryptu} to single value "Nazwa %loop-number% skryptu: 'fScripts'" get of "plugins/Skript/scripts/fScripts/config.yml"
  17. command /fs [<text>] [<text>]:
  18. aliases: fs
  19. trigger:
  20. if arg 1 is "r":
  21. loop {@ilosc} times:
  22. if arg 2 is not "%{Nazwa_%loop-number%_skryptu}%":
  23. send "&cBlad: &7Poprawne uzycie: /fc lista"
  24. stop
  25. if arg 2 is "%{Nazwa_%loop-number%_skryptu}%":
  26. send "&aPrzeladowano skrypt &6%{Nazwa_%loop-number%_skryptu}%"
  27. execute console command "/sk reload %{Nazwa_%loop-number%_skryptu}%"
  28. stop
  29. if arg 1 is "lista":
  30. if arg 2 is not set:
  31. send "&7======== &aDostepne skrypty w fSripts &7========"
  32. loop {@ilosc} times:
  33. send "&6%{Nazwa_%loop-number%_skryptu}%"
  34. send "&7======== &aDostepne skrypty w fSripts &7========"
  35. if arg 1 is not set:
  36. send "&2&l&m------------------------ &afScripts &2&l&m--------------------------"
  37. send "&7- &6/fs r <NazwaSkryptu> &7- Przeladowywuje skrypt (oczywiscie dodany do config.yml!)"
  38. send "&7- &6/fs lista &7- Pokazuje twoje skrypty dodane do config.yml"
  39. send "&2&l&m------------------------ &afScripts &2&l&m--------------------------"
Advertisement
Add Comment
Please, Sign In to add comment