command /on:
trigger:
set {_onchat} to value list "config.message.on" get of "plugins/LChat/config.yml"
wait 2 ticks
broadcast "%{_onchat}%"
command /off:
trigger:
set {_offchat} to value list "config.message.off" get of "plugins/LChat/config.yml"
wait 2 ticks
broadcast "%{_offchat}%"
command /clearr:
trigger:
set {_clear} to value list "config.message.clear" get of "plugins/LChat/config.yml"
wait 2 ticks
broadcast "%{_clear}%"
on script load:
if file "plugins/LChat/config.yml" doesn't exists:
create file "plugins/LChat/config.yml"
i taki plik YML:
Spoiler
#Chat by LordziaK
config:
message:
off:
- 'Chat zostal wylaczony'
on:
- 'Chat zostal wlaczony'
clear:
- 'Chat zostal wyczyszczony'
no-perm:
- 'Nie masz permissi do chatu'
gdy pisze /off lub /on to pisze <none> ;/ a jak /clearr to dziala dobrze...
Pytanie
LordziaK 34
Mam taki kod:
command /on:
trigger:
set {_onchat} to value list "config.message.on" get of "plugins/LChat/config.yml"
wait 2 ticks
broadcast "%{_onchat}%"
command /off:
trigger:
set {_offchat} to value list "config.message.off" get of "plugins/LChat/config.yml"
wait 2 ticks
broadcast "%{_offchat}%"
command /clearr:
trigger:
set {_clear} to value list "config.message.clear" get of "plugins/LChat/config.yml"
wait 2 ticks
broadcast "%{_clear}%"
on script load:
if file "plugins/LChat/config.yml" doesn't exists:
create file "plugins/LChat/config.yml"
i taki plik YML:
#Chat by LordziaK
config:
message:
off:
- 'Chat zostal wylaczony'
on:
- 'Chat zostal wlaczony'
clear:
- 'Chat zostal wyczyszczony'
no-perm:
- 'Nie masz permissi do chatu'
gdy pisze /off lub /on to pisze <none> ;/ a jak /clearr to dziala dobrze...
pomoze ktos?
Odnośnik do komentarza
https://skript.pl/temat/11471-yml/Udostępnij na innych stronach
6 odpowiedzi na to pytanie
Rekomendowane odpowiedzi