on load: if file "plugins/sdBot/config.yml" doesn't exist: create file "plugins/sdBot/config.yml" wait 5 ticks download from "https://code.skript.pl/h3xmYPsu/raw/" to "plugins/sdBot/config.yml" on chat: set {_messages::*} to configuration section "messages" get of "plugins/sdBot/config.yml" set {_przek::*} to value list "przeklenstwa" get of "plugins/sdBot/config.yml" loop {_messages::*}: if "%loop-value%" is "%message%": wait 5 ticks set {_reaction} to single value "messages.%loop-value%" get of "plugins/sdBot/config.yml" send "&8[&eMariusz&8] %colored {_reaction}%" to all players stop loop {_przek::*}: if "%message%" contains "%loop-value%": delete {_cen} set {_am} to length of "%loop-value%" loop {_am} times: if {_cen} is not set: set {_cen} to "&8*" else: set {_cen} to "%{_cen}%&8*" replace all "%loop-value%" in message with "&c[&8%{_cen}%&c]&r" if "%message%" contains "admin": delete {_adms::*} loop all players: if loop-player has permission "sdbot.admin": add "%loop-player%" to {_adms::*} set {_res} to "%{_adms::*}%" replace all " and" in {_res} with " i" wait 5 ticks send "&8[&eMariusz&8] &aNa serwerze jest teraz &e%size of {_adms::*}% adminow&a: &6%{_res}%" to all players if "%message%" contains "godzina": wait 5 tick send "&8[&eMariusz&8] &aJest teraz &e%hour%:%minute% &ai &e%time% &aw grze" to all players