Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if arg 1 is "reload" or "r" or "relog":
- execute player command "skript reload %script%"
- if arg 1 is "skrypty" or "scripts":
- send "&8Skrypty w bazie danych:"
- send "&7%{SKD.list::*}%"
- if arg 1 is "list" or "lista":
- set {skrypty::*} to files in "plugins/Skript/scripts"
- loop {skrypty::*}:
- if loop-value contains ".sk":
- set {_znak} to the first 1 characters of the loop-value parsed as text
- if {_znak} is "-":
- add loop-value to {skrypty.no::*}
- else:
- add loop-value to {skrypty.yes::*}
- else:
- add loop-value to {skrypty.garbage::*}
- send "&2Skrypty działające(uruchomione):"
- send "&e%{skrypty.yes::*}%"
- send "&2Skrypty nie działające(wyłączone):"
- send "&c%{skrypty.no::*}%"
- send "&2Pliki śmieci(nie skrypty):"
- send "&4%{skrypty.garbage::*}%"
- clear {skrypty::*}
- clear {skrypty.no::*}
- clear {skrypty.garbage::*}
- if arg 1 is "cdownload" or "cd" or "customdownload" or "własnyDownload":
- if arg 2 is set:
- if arg 3 is set:
- send "Pobieranie..."
- set {_url} to arg 2 parsed as text
- set {_path} to arg 3 parsed as text
- set {_czy.zawiera} to false
- if {_url} contains "http://":
- set {_czy.zawiera} to true
- if {_czy.zawiera} is false:
- set {_url} to "http://%{_url}%"
- if {_path} contains ":" or "|" or "*" or "?" or "<" or ">":
- send "Ścieżka nie może zawierać znaków : | * ? < > "
- stop
- else:
- download from "%{_url}%" to file "%{_path}%"
- send "Pomyślnie pobrano plik!"
- else:
- send "Musisz podać ścieżkę do pliku, np:"
- send "plugins/Skript/scripts/test.sk"
- else:
- send "Musisz podać link!"
Advertisement
Add Comment
Please, Sign In to add comment