Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- ilosc: 30
- on script load:
- if folder "plugins/Skript/scripts/fScripts" doesn't exists:
- send "&7Nie odnaleziono folderu &2fScript" to all ops
- send "&7Tworzenie..." to all ops
- create folder "plugins/Skript/scripts/fScripts/config.yml"
- if file "plugins/Skript/scripts/fScripts/config.yml" 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: 'fScripts'" get of "plugins/Skript/scripts/fScripts/config.yml"
- command /fs [<text>] [<text>]:
- aliases: fs
- trigger:
- if arg 1 is "r":
- 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========"
- if arg 1 is not set:
- send "&2&l&m------------------------ &afScripts &2&l&m--------------------------"
- send "&7- &6/fs r <NazwaSkryptu> &7- Przeladowywuje skrypt (oczywiscie dodany do config.yml!)"
- send "&7- &6/fs lista &7- Pokazuje twoje skrypty dodane do config.yml"
- send "&2&l&m------------------------ &afScripts &2&l&m--------------------------"
Advertisement
Add Comment
Please, Sign In to add comment