on place: if event-item is beacon: if guild at event-location is set: if player is guild owner: send "&6Gildia: &f%(guild at event-location) guild tag% &6postawiła beacona na &fswoim &6terenie gildii." to all players add "%nl% &6[&f%(guild at event-location) guild tag%&6] &f%event-block's location%" to {beacony::*} else: send "&4Błąd: &cAby móc postawić beacona musisz być liderem gildii." to player cancel event else: send "&4Błąd: &cBeacona można stawiać tylko na terenie gildii." to player cancel event on break: if event-item is beacon: if guild at event-location is set: if player is guild owner: remove "%nl% &6[&f%(guild at event-location) guild tag%&6] &f%event-block's location%" from {beacony::*} command /beacony [] []: trigger: if {beacony::*} is not set: send "&4Błąd: &cAktualnie żadna gildia nie ma postawionego beacona!" else: send "&6Lista beaconów: %{beacony::*}%" command /test: trigger: clear {beacony::*} send "wyczyszczono" to player