Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- ilosc: 30
- on script load:
- if file "plugins/Skript/scripts/fScripts/config.yml" doesn't exists:
- send "&7Nie odnaleziono folderu &2fScript" to all ops
- send "&7Tworzenie..." to all ops
- create folder "plugins/Skript/scripts/fScripts"
- if folder "plugins/Skript/scripts/fScripts" doesn't exists:
- send "&7Nie znaleziono pliku &2config.yml" to all ops
- send "&7Tworzenie..." to all ops
- create file "plugins/Skript/scripts/fScripts/config.yml"
- loop {@ilosc} times:
- wf "Nazwa %loop-number% skryptu: 'fScripts'" to "plugins/Skript/scripts/fScripts/config.yml"
- else:
- loop {@ilosc} times:
- set {Nazwa_%loop-number%_skryptu} to single value "Nazwa %loop-number% skryptu" get of "plugins/Skript/scripts/fScripts/config.yml"
- command /fs [<text>] [<text>]:
- aliases: fs
- trigger:
- if arg 1 is "przeladuj":
- loop {@ilosc} times:
- if arg 2 is not "%{Nazwa_%loop-number%_skryptu}%":
- send "&cBlad: &7Poprawne uzycie: /fc lista"
- stop
- if arg 2 is "%{Nazwa_%loop-number%_skryptu}%":
- send "&aPrzeladowano skrypt &6%{Nazwa_%loop-number%_skryptu}%"
- execute console command "/sk reload %{Nazwa_%loop-number%_skryptu}%"
- stop
- if arg 1 is "lista":
- if arg 2 is not set:
- send "&7======== &aDostepne skrypty w fSripts &7========"
- loop {@ilosc} times:
- send "&6%{Nazwa_%loop-number%_skryptu}%"
- send "&7======== &aDostepne skrypty w fSripts &7========"
Advertisement
Add Comment
Please, Sign In to add comment