function freeze(gracz: player): loop all players in radius 15 around {_gracz}: if loop-player has permission "cuboid.1": set {czas::%loop-player%} to 20 set {lockmovement::%loop-player%} to true on join: while player is online: if {czas::%player%} is 0: clear {czas::%player%} stop if {czas::%player%} > 0: send title "&6&lZOSTAŁEŚ ZAMROŻONY!" with subtitle "&8» &7na czas&8: &C%{czas::%player%}% sekund" to loop-player play sound "BLOCK_NOTE_BLOCK_BASS" with volume 5 and pitch 1.5 to loop-player remove 1 from {czas::%player%} wait a second if {lockmovement::%player%} is set: clear {lockmovement::%player%} on rightclick: set {_item} to paper named "&8» &b???" if player's tool is {_item}: if player has permission "team.red": remove 1 of {_item} from player's inventory play sound "ENTITY_PLAYER_LEVELUP" with volume 5 and pitch 2 freeze(player)