# Jest to testowy skrypt ;/ # # Aktualizacja # on script load: set {_} to result of connect to "https://code.skript.pl/qH7CPgth" if {_} is not "0.1": send "[tTools] &cDostepna jest nowa wersja tToolsow!" to console send "[tTools] &7Pobieranie..." to console delete folder "plugins/tTools" delete file "plugins/Skript/scripts/tTools.sk" wait 10 ticks download from "https://code.skript.pl/ivBMJoHt" to "plugins/Skript/scripts/tTools.sk" wait 10 ticks execute console command "sk reload all" send "[tTools] &aNajnowsza wersja tToolsow zostala wgrana!" to console if folder "plugins/tTools" doesn't exists: create folder "plugins/tTools" # Config # on script load: if folder "plugins/tTools" doesn't exists: send "[tTools] &cNie odnaleziono folderu tTools!" to console send "[tTools] &7Tworzenie..." to console create folder "plugins/tTools" send "[tTools] &aFolder tTools zostal stworzony!" to console if file "plugins/tTools/config.yml" doesn't exists: send "[tTools] &cNie odnaleziono pliku config.yml od pluginu tTools!" to console send "[tTools] &7Tworzenie..." to console create file "plugins/tTools/config.yml" wait 10 ticks send "[tTools] &7Tworzenie domyslnego config.yml od pluginu tTools..." to console wf "pomoc:" to "plugins/tTools/config.yml" wf " pomoc:" to "plugins/tTools/config.yml" wf " - '&c/pomoc &8- &7Wyswietla ta komende'" to "plugins/tTools/config.yml" wf " - '&c/tTools &8- &7Informacje dot. skryptu'" to "plugins/tTools/config.yml" on script load: set {pomoc} to configuration section "pomoc/pomoc" get of "plugins/tTools/config.yml" # Komendy # command /pomoc []: trigger: send "%{pomoc}%"