if skyblock team member not online, item spawner not working,how to they do it
Code:
command /CoinSpawner <text> <player>:
permission: coinsp.admin
permission message: '&cGerekli Yetkin Yok.'
trigger:
if arg-1 is "give":
if arg-2 is not set:
give 1 yellow wool named "&bPCNW &9» &eCoin Spawner" to player
if arg-2 is set:
give 1 yellow wool named "&bPCNW &9» &eCoin Spawner" to arg-2
if arg-1 is "clear":
clear {isspanwer::*}
on place of yellow wool:
if name of player's tool is "&bPCNW &9» &eCoin Spawner":
set {_owner} to asb owner of island at location of player
if {isspanwer::%{_owner}%} is not set:
set {isspanwer::%{_owner}%} to true
if name of player's tool is "&bPCNW &9» &eCoin Spawner":
create holo object "&eCoin &6Spawner;ItemStack:prismarine crystals;;&6Sahibi &9» &e%player%;&6Süre &9» &e10 Saniye;&6Miktar &9» &e1" with id "%event-block's location%" at location 2.8 meters above block
set {_location} to location of targeted block
set {coinspawner::%{_location}%} to {_location}
set {_x} to x coord of event-location
set {_y} to y coord of event-location
set {_z} to z coord of event-location
wait 2 tick
stop
if {isspanwer::%{_owner}%} is true:
cancel event
send "&bPCNW &9» &aHer adaya en fazla 1 adet koyulabilir."
stop
on break of yellow wool:
if {coinspawner::%location of targeted block%} is set:
cancel event
set block to air
delete holo object "%event-block's location%"
remove location of targeted block from {coinspawner::*}
clear {coinspawner::%location of targeted block%}
give 1 yellow wool named "&bPCNW &9» &eCoin Spawner" to player
set {_owner} to asb owner of island at location of player
delete {isspanwer::%{_owner}%}
every 10 second:
loop {coinspawner::*}:
drop 1 prismarine crystals named "&eCoin" at block 0 above loop-value