variables: {alert-status::%player%} = true {open::%player%} = true command /alert [] [] []: permission: alert.global permission message: &cNie masz permisji &9alert.global trigger: if arg-1 is not set: send "&9➽ &7Poprawne uzycie&e: &9/alert title|subtitle|title-subtitle " stop if arg-1 is not "title" or "subtitle" or "title-subtitle": send "&9➽ &7Poprawne uzycie&e: &9/alert title|subtitle|title-subtitle " stop if arg-1 is "title": loop all players: if {alert-status::%loop-player%} is true: send loop-player title "&7%coloured arg-2%" with subtitle " " for 5 seconds stop if arg-1 is "subtitle": loop all players: if {alert-status::%loop-player%} is true: send loop-player title "" with subtitle "%coloured arg-2%" for 5 seconds stop if arg-1 is "title-subtitle": loop all players: if {alert-status::%loop-player%} is true: send loop-player title "&7%coloured arg-2%" with subtitle "&7%coloured arg-3%" for 5 seconds stop command /cc []: trigger: if arg-1 is not set: set {open::%player%} to false open chest with 1 rows named "&9➽ &7Zarzadzanie chatem!" to player wait 3 ticks if {alert-status::%player%} is true: format slot 0 of player with 1 green clay named "&aAlert title" with lore " ||&7Kliknij, aby zmienic status!|| " to run [make player execute command "/cc 1"] if {alert-status::%player%} is false: format slot 0 of player with 1 red clay named "&cAlert title" with lore " ||&7Kliknij, aby zmienic status!|| " to run [make player execute command "/cc 1"] wait 2 real seconds set {open::%player%} to true on rightclick on chest: if {open::%player%} is false: cancel event on rightclick on trapped chest: if {open::%player%} is false: cancel event on rightclick on ender chest: if {open::%player%} is false: cancel event