#Command Blocking In Certain Regions

1 messages · Page 1 of 1 (latest)

covert creek
#

Can i block certain commands in a certain region or two i want to block /sethome and /essentails:sethome in pvparea and spawn

flat brook
#
    if "%region at player%" contains "test_region":
        if player does not have permission "sk.test":
            cancel event
            send "§cYou cant use this command in this region." to player
        else:
            uncancel event ```
#

if you want to block multiple cmds you can do on command "/test" or "/test2" or "/test3":

covert creek
#

thanks 😄

flat brook
#

or multiple regions of "%region at player%" contains "test region" or "test region2" or "test region 3":

flat brook
covert creek
#

this does not block /essentials:sethome tho it block /sethome

on command "/sethome" or "/essentials:sethome":
    if "%region at player%" contains "spawn" or "pvpbox":
        cancel event
        send "§cYou cant use this command in this region." to player


flat brook
#

Do ```on command:
If command is "sethome" or "essentials:sethome":

covert creek
#

works thanks