on load: if folder "plugins/Skript/scripts/plugins/MCenzura" doesn't exists: create folder "plugins/MCenzura" create file "plugins/MCenzura/config.yml" set yaml value "CenzuraList" from file "plugins/MCenzura/config.yml" to "&cLista ocenzurowanych slow:" set yaml value "CenzuraDodaj" from file "plugins/MCenzura/config.yml" to "&cDodales slowo &a%arg 2% &cdo listy ocenzurowanych slow" set yaml value "CenzuraUsun" from file "plugins/MCenzura/config.yml" to "&cUsunales slowo &a%arg 2% &cz listy ocenzurowanych slow" set yaml value "CenzuraUsunUzycie" from file "plugins/MCenzura/config.yml" to "&8»» &cPoprawne uzycie /cenzura usun [slowo]" set yaml value "CenzuraDodajUzycie" from file "plugins/MCenzura/config.yml" to "&8»» &cPoprawne uzycie /cenzura dodaj [slowo]" command /cenzura [] []: trigger: if sender has permission "mcenzura.commands": if arg 1 isn't set: send "&8»» &cKomendy:" send "&8»» &c/cenzura dodaj [slowo]" send "&8»» &c/cenzura usun [slowo]" send "&8»» &c/cenzura list" if arg 1 is "dodaj": if arg 2 isn't set: set {_CenzuraDodajUzycie} to yaml value "CenzuraDodajUzycie" from file "plugins/MCenzura/config.yml" send "%{_CenzuraDodajUzycie}%" if arg 2 is set: set {_CenzuraDodaj} to yaml value "CenzuraDodaj" from file "plugins/MCenzura/config.yml" send "%{_CenzuraDodaj}%" add arg 2 to {clist::*} if arg 1 is "usun": if arg 2 isn't set: set {_CenzuraUsunUzycie} to yaml value "CenzuraUsunUzycie" from file "plugins/MCenzura/config.yml" send "%{_CenzuraDodajUzycie}%" if arg 2 is set: set {_CenzuraUsun} to yaml value "CenzuraUsun" from file "plugins/MCenzura/config.yml" send "%{_CenzuraUsun}%" remove arg 2 from {clist::*} if arg 1 is "list": set {_CenzuraList} to yaml value "CenzuraList" from file "plugins/MCenzura/config.yml" send "%{_CenzuraList}% &a%{clist::*}%" else: stop on chat: loop {clist::*}: replace "%loop-value-1%" with "&c[CENZURA]" in message