# Cześć! Jeśli mugłbyś nie usuwaj tej linijki, nie będę się bawił w jakieś komendy czy dodatkowe argumenty, lecz uszanuj to że stworzyłem ten skript i możesz z niego kożystać. Tylko ty widzisz tą wiadmość zostaw ją a świat stanie się lepszy <3 command /alert []: permission: pqapi.alert permission message: &cNie masz do tego uprawnien. aliases: broadcast, bc trigger: if arg 1 is not set: send "&cPoprawne uzycie &7/alert " stop if arg 1 is set: if {_x} is not set: wait 1 tick open chest with 3 rows named "&cALERT" to player wait 1 tick set {_x} to arg 1 loop all players: add 1 to {_online} #set {_online} to value of placeholder "server_online" from player replace all "$online" with "%{_online}%" in {_x} replace all "$nick" with "&c~%player%&f" in {_x} set {aalert::%player%::message} to {_x} set slot 11 of player's current inventory to paper named "&cWyslij na CHACIE" set slot 13 of player's current inventory to beacon named "&cWyswietl na TITLE" set slot 15 of player's current inventory to wood sword named "&cWyswietl na ACTION BARZE" set slot 22 of player's current inventory to dye:1 named "&cWyslij ALERT &7&m--&r&7>" with lore "&cNie mozna wyslac!, zaznacz co najmniej jedna opcje!" stop on inventory click: if inventory name of player's current inventory is "&cALERT": cancel event if clicked slot is 11: if {aalert::%player%::chat} is not set: set slot 11 of player's current inventory to paper of power 10 named "&aWyslij na CHACIE" set slot 22 of player's current inventory to dye:10 named "&aWyslij ALERT &7&m--&r&7>" set {aalert::%player%::chat} to true stop else: set slot 11 of player's current inventory to paper named "&cWyslij na CHACIE" if {aalert::%player%::title} and {aalert::%player%::actionbar} is not set: set slot 22 of player's current inventory to dye:1 named "&cWyslij ALERT &7&m--&r&7>" with lore "&cNie mozna wyslac!, zaznacz co najmniej jedna opcje!" delete {aalert::%player%::chat} stop if clicked slot is 13: if {aalert::%player%::title} is not set: set slot 13 of player's current inventory to beacon of power 10 named "&aWyswietl na TITLE" set slot 22 of player's current inventory to dye:10 named "&aWyslij ALERT &7&m--&r&7>" set {aalert::%player%::title} to true stop else: set slot 13 of player's current inventory to beacon named "&cWyswietl na TITLE" if {aalert::%player%::chat} and {aalert::%player%::actionbar} is not set: set slot 22 of player's current inventory to dye:1 named "&cWyslij ALERT &7&m--&r&7>" with lore "&cNie mozna wyslac!, zaznacz co najmniej jedna opcje!" delete {aalert::%player%::title} stop if clicked slot is 15: if {aalert::%player%::actionbar} is not set: set slot 15 of player's current inventory to wood sword of power 10 named "&aWyswietl na ACTION BARZE" set slot 22 of player's current inventory to dye:10 named "&aWyslij ALERT &7&m--&r&7>" set {aalert::%player%::actionbar} to true stop else: set slot 15 of player's current inventory to wood sword named "&cWyswietl na ACTION BARZE" if {aalert::%player%::chat} and {aalert::%player%::title} is not set: set slot 22 of player's current inventory to dye:1 named "&cWyslij ALERT &7&m--&r&7>" with lore "&cNie mozna wyslac!, zaznacz co najmniej jedna opcje!" delete {aalert::%player%::actionbar} stop if clicked slot is 22: if clicked item is dye:10 named "&aWyslij ALERT &7&m--&r&7>": close player's inventory if {aalert::%player%::chat} is true: delete {aalert::%player%::chat} broadcast " " broadcast "&4&lALERT &8» &f%{aalert::%player%::message}%" broadcast " " if {aalert::%player%::title} is true: delete {aalert::%player%::title} loop all players: send loop-player title "&4&lALERT" with subtitle "&f%coloured {aalert::%player%::message}%" for 4 seconds if {aalert::%player%::actionbar} is true: delete {aalert::%player%::actionbar} loop all players: show action bar from "&4&lALERT &8» &f%{aalert::%player%::message}%" to all players else: cancel event