options:
name: "&eCollecters &7>"
on place of banner:
if {bannerlimit.%player%} is less than 1:
set {bannerowner.%location%} to player
send "%{bannerowner.%location%}%"
set {bannerloc.%location%} to location
send "%{bannerloc.%location%}%"
add 1 to {bannerlimit.%player%}
else:
send "%{name}% You already have a banner placed!"
cancel event
on break of banner:
if %{bannerloc.%location%}% is %{bannerowner.%location%}%
set {_bannerowner} to {bannerowner.%location%} parsed as a player
remove 1 from {bannerlimit.%{_bannerowner}%}
send "%{name}% &e%player% &7broke your banner" to {_bannerowner}
send "%{name}% you broke &e{_bannerowner}'s &7banner."
else:
send "failed"
command /banner:
trigger:
send "%{name}% %{banner::%location%}%"
send "%{name}% %{bannerlimit.%player%}%"
command /bannerreset:
trigger:
set {bannerlocation::%player%} to false
set {bannerlimit.%player%} to 0
name: "&eCollecters &7>"
on place of banner:
if {bannerlimit.%player%} is less than 1:
set {bannerowner.%location%} to player
send "%{bannerowner.%location%}%"
set {bannerloc.%location%} to location
send "%{bannerloc.%location%}%"
add 1 to {bannerlimit.%player%}
else:
send "%{name}% You already have a banner placed!"
cancel event
on break of banner:
if %{bannerloc.%location%}% is %{bannerowner.%location%}%
set {_bannerowner} to {bannerowner.%location%} parsed as a player
remove 1 from {bannerlimit.%{_bannerowner}%}
send "%{name}% &e%player% &7broke your banner" to {_bannerowner}
send "%{name}% you broke &e{_bannerowner}'s &7banner."
else:
send "failed"
command /banner:
trigger:
send "%{name}% %{banner::%location%}%"
send "%{name}% %{bannerlimit.%player%}%"
command /bannerreset:
trigger:
set {bannerlocation::%player%} to false
set {bannerlimit.%player%} to 0