variables: {cub.s} = false on leftclick: if {cub.s} is true: cancel event send "&c&l%world%Cuboid&8:&7 Przepraszamy ale nie mozesz tego tutaj robic!" on rightclick: if {cub.s} is true: cancel event send "&c&l%world%Cuboid&8:&7 Przepraszamy ale nie mozesz tego tutaj robic!" on damage: if {cub.s} is true: cancel event send "&c&l%world%Cuboid&8:&7 Przepraszamy ale nie mozesz tego tutaj robic!" on explode: if {cub.s} is true: cancel event broadcast "&6&lUWAGA!&8:&7 Proba wysadzenia TNT na swiecie %world%" On Ignition: if {cub.s} is true: cancel event broadcast "&6&lUWAGA!&8:&7 Proba podpalenia na terenie z Cuboidem: %world%" On Item Spawn: if {cub.s} is true: cancel event broadcast "&c&l%world%Cuboid&8:&7 Przepraszamy ale nie mozesz tego tutaj robic!" command /switchcubstatus: trigger: if player has permission "cub.manage": if {cub.s} is false: set {cub.s} to true send "&aWlaczono" stop else if {cub.s} is true: set {cub.s} to false send "&4Wylaczono" stop