#Command Blocking In Certain Regions
1 messages · Page 1 of 1 (latest)
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":
thanks 😄
or multiple regions of "%region at player%" contains "test region" or "test region2" or "test region 3":
Np
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
Do ```on command:
If command is "sethome" or "essentials:sethome":
works thanks