variables: {god::szadouu::ochrona::%player%} = false options: x-min: -2500 x-max: 2500 z-min: -2500 z-max: 2500 on rightclick on button: if block behind target block is sponge: send "&8► &3Grupowa teleportacja nastepuje za 5 sekund!" set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} wait 5 seconds loop players in radius 5 around block behind block: teleport loop-player to {_loc} teleport player to {_loc} set {god::szadouu::ochrona::%loop-player%} to true set {god::szadouu::ochrona::%player%} to true send "&8► &3Teleportacja nastapila!" wait 10 seconds set {god::szadouu::ochrona::%loop-player%} to false set {god::szadouu::ochrona::%player%} to false on damage: if {god::szadouu::ochrona::%attacker%} = true: cancel event on damage: if {god::szadouu::ochrona::%victim%} = true: cancel event