command /god: permission: god trigger: if {god.%player%} is false: set {god.%player%} to true stop else: set {god.%player%} to false stop on damage: if attacker is player: if {god.%player%} is true: cancel event stop