Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- if {anaranking::logi} is "tak":
- send "[AnaRanking] Skrypt zostal pomyslnie zaladowany" to the console
- send "[AnaRanking] Wersja: %{anaranking::version}% Autor: %{anaranking::author}%" to the console
- if folder "plugins/AnaRanking" doesn't exists:
- send "[AnaRanking] Folder AnaRanking nie istnieje i zostanie utworzony" to the console
- wait 1 tick
- create folder "plugins/AnaRanking"
- if file "plugins/AnaRanking/konfiguracja.yml" doesn't exists:
- send "[AnaRanking] Plik konfiguracyjny nie istnieje wiec zostal utworzony" to the console
- wait 1 tick
- create file "plugins/AnaRanking/konfiguracja.yml"
- send "[AnaRanking] Trwa uzupelnianie pliku konfiguracyjnego" to the console
- wf "logi: 'tak'" to "plugins/AnaRanking/konfiguracja.yml"
- wf "autor: 'anastair'" to "plugins/AnaRanking/konfiguracja.yml"
- wf "wersja: '1.0'" to "plugins/AnaRanking/konfiguracja.yml"
- set {anaranking::logi} to single value "logi" get of "plugins/AnaRanking/konfiguracja.yml"
- set {anaranking::author} to single value "autor" get of "plugins/AnaRanking/konfiguracja.yml"
- set {anaranking::version} to single value "wersja" get of "plugins/AnaRanking/konfiguracja.yml"
- on script unload:
- if {anaranking::logi} is "tak":
- send "[AnaRanking] Skrypt zostal pomyslnie wylaczony" to the console
- send "[AnaRanking] Dziekuje za uzywanie anaranking" to the console
- #Sprawdzanie nowych aktulizacji
- every 30 minutes:
- set {_anaranking} to result of connect to "http://anaranking.zlsw.pl/aktualnawersja.sk"
- if {_anarankingversion} is not {anaranking::version}:
- if {anaranking::logi} is "tak":
- send "" to the console
- send "" to the console
- send "[]=======================[]" to the console
- send "[AnaRanking] Twoja wersja skryptu jest nieaktualna!" to the console
- send "[AnaRanking] Twoja wersja: %{version}% a najnowsza wersja: %{_version}%" to the console
- send "[AnaRanking] Wpisz /anaranking aktulizacja lub wejdz na www.anaranking.zlsw.pl" to the console
- send "[]=======================[]" to the console
- send "" to the console
- send "" to the console
Advertisement
Add Comment
Please, Sign In to add comment