I wish to make the player run /pvp if their pvp status is set to "yes" (so their pvp is enabled after getting disabled by PvP manager). My code doesn't give any errors. The version is minecraft 1.18.1.
The region is called arena and is already marked out by worldguard with pvp on. When I do /pvp, all it does is say pvp enabled and pvp disabled when I run it after. What I want it to do is make me do /pvp if it is enabled so once PvPmanager disabled it if I am in that region, it will make me run it to re-enable it.
I am quite new to this so any help is appreciated
Code (Skript):
on command "/pvp":
if "%%pvpmanager_pvp_status%%" is "yes":
if "%region at player%" is "arena":
make player execute command "/pvp"
The region is called arena and is already marked out by worldguard with pvp on. When I do /pvp, all it does is say pvp enabled and pvp disabled when I run it after. What I want it to do is make me do /pvp if it is enabled so once PvPmanager disabled it if I am in that region, it will make me run it to re-enable it.
I am quite new to this so any help is appreciated
Code (Skript):
on command "/pvp":
if "%%pvpmanager_pvp_status%%" is "yes":
if "%region at player%" is "arena":
make player execute command "/pvp"