im new to skript and can you help me a bit with my problems?
this is what i made so far but idk if its good and how to go further
(idk what after the trigger go's for this command and i need smthing for the loc1:location,loc2:location)
# funcion
function IfInSpawn(p:player,loc1:location,loc2:location,m:string):
send "&c&lError &8| &f%{_m}%" to "%{_p}%"
# for the first spawn cords
command /spawnloc1
permission: op
trigger:
# for the second spawn cords
command /spawnnloc2
permission: op
trigger:
# what happends
on block break:
if event-block is within location {_loc1} and {_loc2}:
if player's gamemode is not creative:
IfInSpawn(player, "You can't break that")
cancel event