options: #Od ilu procent spiacych osob ma sie zmienic czas players-Percent: 50 #Jaki czas ma sie ustawic time: 8:00 #Jaka wiadomosc ma sie wyswietlic gdy gracze poloza sie spac final-message: &2%{_percent}%%% &agraczy polozyla sie spac! Czas zostal zmieniony! #Jaka wiadomosc ma sie wyswietlic gdy gracz polozy sie spac player-message: &2%player% &apolozyl sie spac! &c%{_percent}%%%/50%% on bed enter: if is thundering in player's world: stop set {_s} to (amount of (all players in player's world where [player input is sleeping])) + 1 set {_amount} to amount of all players in player's world set {_percent} to ({_s}/{_amount}) * 100 if {_percent} >= {@players-Percent}: set time of player's world to {@time} send action bar "{@final-message}" to all players in player's world stop send action bar "{@player-message}" to all players in player's world