#OSTATNIA AKTUALIZACJA: 01.05.2018 14:51 (Homu) on script load: set yaml value "chat-ox-send" from file "server/ChatOX.yml" to "1" every 10 minutes: set {_chat-ox-send} to yaml value "chat-ox-send" from file "server/ChatOX.yml" + 1 set yaml value "chat-ox-send" from file "server/ChatOX.yml" to "%{_chat-ox-send}%" set {_chat-ox::*} to yaml nodes "chatox" from file "server/ChatOX.yml" loop {_chat-ox::*}: set {_chat-ox-question.%loop-value%} to yaml value "chatox.%loop-value%.question" from file "server/ChatOX.yml" set {_chat-ox-answer.%loop-value%::*} to yaml list "chatox.%loop-value%.answer" from file "server/ChatOX.yml" set {_question} to yaml value "chatox.%{_chat-ox-send}%.question" from file "server/ChatOX.yml" set yaml value "chat-ox-status" from file "server/ChatOX.yml" to "true" set {_question-status} to yaml value "chat-ox-status" from file "server/ChatOX.yml" broadcast "&3&lKonkurs %coloured {_question}%" loop all players: play "ENTITY_PLAYER_LEVELUP" specifically to loop-player with pitch 1 and volume 10 set action bar of loop-player to "&7*&3&lKonkurs&7* &fOdpowiedz na pytanie na czacie!" delete {_question-status} wait 15 second set {_question-status} to yaml value "chat-ox-status" from file "server/ChatOX.yml" if {_question-status} is set: broadcast "&3&lKonkurs &7➤ &fNikt &cnie odpowiedział&f poprawnie na pytanie!" loop {_chat-ox-answer.%{_chat-ox-send}%::*}: broadcast "&eOdpowiedzia jest... &6• &f%coloured loop-value%" loop all players: play "ENTITY_PLAYER_BURP" specifically to loop-player with pitch 1 and volume 10 delete yaml value "chat-ox-status" from file "server/ChatOX.yml" stop on chat: set {_question-status} to yaml value "chat-ox-status" from file "server/ChatOX.yml" if {_question-status} is set: set {_chat-ox-send} to yaml value "chat-ox-send" from file "server/ChatOX.yml" set {_chat-ox-answer.%{_chat-ox-send}%::*} to yaml list "chatox.%{_chat-ox-send}%.answer" from file "server/ChatOX.yml" loop {_chat-ox-answer.%{_chat-ox-send}%::*}: if loop-value is message: broadcast "&3&lKonkurs &7➤ &fOdpowiedno na pytanie odpowiedział/-a &e%sender%&f: &7%loop-value%&f!" loop all players: play "ENTITY_WITHER_DEATH" specifically to loop-player with pitch 1 and volume 10 add 200 to sender's balance delete yaml value "chat-ox-status" from file "server/ChatOX.yml" stop