variables: {RegulaminAccepted::%player%} = false on join: if {RegulaminAccepted::%player%} is false: wait 3 seconds open chest with 3 rows named "&a&lRegulamin" to player set player's current inventory's slot 11 to green wool block named "&a&lAkceptuje regulamin" with lore "&7Kliknij aby zaakceptowac regulamin.||&7Regulamin: &6www.strona.pl/regulamin||||&7Twoj wybor zostanie zapamietany" set player's current inventory's slot 15 to red wool block named "&c&lNie akceptuje regulaminu" with lore "&7Kliknij aby odmowic akceptacji regulaminu.||&7Aby grac MUSISZ zaakceptowac reglamin, zatem||&7po odmowieniu akceptacji zostaniesz WYRZUCONY.||||&7&lPo odmowie nadal bedziesz posiadal mozliwosc||&7&lponownego dolaczenia i zaakceptowania regulaminu" on inventory close: if inventory name of player's current inventory is "&a&lRegulamin": if {RegulaminAccepted::%player%} is false: play raw sound "mob.blaze.death" at player with pitch 1 volume 10 wait 1 tick kick player due to "&cAby zagrac musisz zakceptowac regulamin" on inventory click: if inventory name of player's current inventory is "&a&lRegulamin": cancel event if clicked slot is 11: if clicked item is green wool block named "&a&lAkceptuje regulamin" with lore "&7Kliknij aby zaakceptowac regulamin.||&7Regulamin: &6www.strona.pl/regulamin||||&7Twoj wybor zostanie zapamietany": set {RegulaminAccepted::%player%} to true close player's inventory play raw sound "mob.cat.meow" at player with pitch 1 volume 10 send player title "&a&lZaakceptowano" with subtitle "&a&lRegulamin" for 5 seconds if clicked slot is 15: if clicked item is red wool block named "&c&lNie akceptuje regulaminu" with lore "&7Kliknij aby odmowic akceptacji regulaminu.||&7Aby grac MUSISZ zaakceptowac reglamin, zatem||&7po odmowieniu akceptacji zostaniesz WYRZUCONY.||||&7&lPo odmowie nadal bedziesz posiadal mozliwosc||&7&lponownego dolaczenia i zaakceptowania regulaminu": close player's inventory else if clicked slot is not 15 or 11: play raw sound "random.pop" at player with pitch 1 volume 10