command /epicdl [] []: trigger: if arg-1 is not set: send "&7&m+-+&a&l EpicDL &7&m+-+" send "&7&oAby zobaczyc informacje na temat danego skryptu, kliknij na niego!" send "" send json "&a&nxinHelp&7 - skrypt na pomoc!" tooltip "&a&nKliknij aby zobaczyc informacje!" run "/epicdl xinhelp" to player if arg-1 is "xinhelp": send "&7&m+-+&a&l xinHelp &7&m+-+" send "" send "&7&lOpis: &7Bardzo prosty skrypt na pomoc, zostal dodany" send "&7tylko dla testow, prosze go nie oceniac." send "" send "&7&lWymagania:" if "plugins/Skript.jar" exists: send "&fSkript &a&nPosiadasz!" else: send "&fSkript &c&nNie posiadasz!" send "" if file "plugins/Skript/scripts/xinhelp_v0.1.sk" doesn't exists: send json "&2&nPobierz" tooltip "&a&nKliknij aby rozpoczac pobieranie!" run "/epicdl dl xinhelp" to player else: send json "&2&nAktualizuj" tooltip "&a&nKliknij aby rozpoczac aktualizacje!" run "/epicdl update xinhelp" to player send json "&4&nOdinstaluj!" tooltip "&a&nKliknij aby usunac!" run "/epicdl delete xinhelp" to player if arg-1 is "dl": if arg-2 is "xinhelp": if file "plugins/Skript/scripts/xinhelp_v0.1.sk" doesn't exists: create file "plugins/Skript/scripts/xinhelp_v0.1.sk" download "https://pastebin.com/raw/x9410Va5" to "plugins/Skript/scripts/xinhelp_v0.1.sk" send "&a&lUkonczono instalacje skryptu! Gratulacje!" else: send "&cTaki skrypt juz istnieje! &7Usun go aby rozwiazac problem!" if arg-1 is "delete": if arg-2 is "xinhelp": if file "plugins/Skript/scripts/xinhelp_v0.1.sk" exists: wait 10 ticks delete file "plugins/Skript/scripts/xinhelp_v0.1.sk" send "&c&lPomyslnie ukonczono odinstalowywanie skryptu!" send "&cZanim usuna sie jego wszystkie dane musisz chwile poczekac! Nie spam przyciskiem!" else: send "&cNie moge znalezc takiego skryptu! ;c" if arg-1 is "update": if arg-2 is "xinhelp": if file "plugins/Skript/scripts/xinhelp_v0.1.sk" exists: delete file "plugins/Skript/scripts/xinhelp_v0.1.sk" wait 10 ticks create file "plugins/Skript/scripts/xinhelp_v0.1.sk" download "https://pastebin.com/raw/x9410Va5" to "plugins/Skript/scripts/xinhelp_v0.1.sk" send "&a&lUkonczono aktualizacje! &7&oTryb w fazie beta, bedzie mozliwosc sprawdzania czy jest dostepna aktualizacja!"