#Spawn

1 messages · Page 1 of 1 (latest)

full lion
#

How do i make it so if a player is in combat they cant enter spawn?

native sonnet
#

cancel the region enter event if they are in combat

full lion
#

oh

#

that simple?

native sonnet
#

yeah

#

as long as you have a way to check if they are in combat

full lion
#

yeah

#

if {in_combat::%player's uuid%} is true

native sonnet
#

perfect

full lion
#
    if player has permission "admin.spawn":
        stop
    if {in_combat::%player's uuid%} is true:
        cancel event```
analog shore
#

Do you have that permission node?

#

Or just op

native sonnet
#

yeah your code looks fine

#

make sure your permissions are setup correctly

full lion
#

wait

#

oh my days

#

your right

#

i mispelt admin

#

in the perm node

native sonnet
#

send code

brazen spire
# full lion

Your indenting is wrong. If you wanna skip indenting and make it apply for the entire command, you remove the if and colon.