Facebook
From Gentle Echidna, 1 Year ago, written in JavaScript.
This paste is a reply to Skrypt na pobieranie from XWGTV - go back
Embed
Viewing differences between Skrypt na pobieranie and Re: Skrypt na pobieranie
command /download [] []:
    trigger:
        if player has permissions "download.use":
            if arg 1 is set:
                if arg 2 is set:
                    if file "plugins/Skript/scripts/%arg 2%.sk" doesn't exists:
                        send "%sender% rozpoczyna pobieranie skryptu ze strony %arg 1% do pliku %arg 2%.sk" to console
                        send "&2Rozpoczynasz pobieranie skryptu z &a%arg 1% &2do pliku &a%arg 2%.sk" to player
                        create file "plugins/Skript/scripts/%arg 2%.sk"
                        send "Stworzono plik %arg 2%.sk" to console
                        if file "plugins/Skript/scripts/%arg 2%.sk" doesn't exists:
                            send "[ERROR] Podczas pobierania pliku %arg 1% wystapil blad!" to console
                            send "[ERROR] Powod bledu: Brak pliku %arg 2%.sk" to console
                        else:
                            download from "%arg 1%" to "plugins/Skript/scripts/%arg 2%.sk"
                            send "Pobieranie pliku %arg 1% do folderu %arg 2% przez %sender% zostalo zakonczone!" to console
                            send "&2Ukonczono pobieranie!"
                            stop
                    else:
                        send "&cSkrypt nie zostaje pobrany poniewaz istnieje juz plik z taka nazwa."