on script load:
if folder "plugins/PVPCore" doesn't exists:
create folder "plugins/PVPCore"
if file "plugins/PVPCore/config.yml" doesn't exists:
create file "plugins/PVPCore/config.yml"
set "captcha" to "true" in yaml file "plugins/PVPCore/config.yml"
set {captcha} to single value "captcha" get of "plugins/PVPCore/config.yml"
on chat:
if {captcha} is true:
send "ello"
Pytanie
kerpson 551
Mam taki kod ale nie dziala poprawnie
on script load: if folder "plugins/PVPCore" doesn't exists: create folder "plugins/PVPCore" if file "plugins/PVPCore/config.yml" doesn't exists: create file "plugins/PVPCore/config.yml" set "captcha" to "true" in yaml file "plugins/PVPCore/config.yml" set {captcha} to single value "captcha" get of "plugins/PVPCore/config.yml" on chat: if {captcha} is true: send "ello"Odnośnik do komentarza
https://skript.pl/temat/26264-problem-z-configiem/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi