variables: ax = true on break diamond ore: loop all players: if loop-player has permission "xray.wiadomosc": if {ax.%player%} is true: send "&7[&cX-ray&7] &6Gracz %player% wykopal diament!" else: cancel event on break gold ore: loop all players: if loop-player has permission "xray.wiadomosc": if {ax.%player%} is true: send "&7[&cX-ray&7] &6Gracz %player% wykopal zloto!" else: cancel event on break emerald ore: loop all players: if loop-player has permission "xray.wiadomosc": if {ax.%player%} is true: send "&7[&cX-ray&7] &6Gracz %player% wykopal emerald!" else: cancel event on break ancient debris: loop all players: if loop-player has permission "xray.wiadomosc": if {ax.%player%} is true: send "&7[&cX-ray&7] &6Gracz %player% wykopal netherite!" else: cancel event command /ax []: trigger: if arg 1 is "on": set {ax.%player%} to true send "&7[&cX-ray&7] &6Wylaczono powiadomienia xray" if arg 1 is "off": set {ax.%player%} to false