PvP in a certain region

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Shansha

Member
Dec 31, 2021
1
0
1
17
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 :emoji_slight_smile:

Code (Skript):

on command "/pvp":
if "%%pvpmanager_pvp_status%%" is "yes":
if "%region at player%" is "arena":
make player execute command "/pvp"
 
Status
Not open for further replies.