Help with WG region 'exit' flag using an Array

Discussion in 'Spigot Plugin Development' started by DreamOnPvP, May 15, 2016.

Thread Status:
Not open for further replies.
  1. I am trying to make it so that whenever someone is in combat, they can't leave a PvP area. I am using WorldGuard to define the region, and I am hoping that I can use the 'exit' flag to make this that much easier on me. I don't need help with registering combat, just with the exit flag.

    What I am trying to do:

    If someone is in the ArrayList combattagged they will no longer be able to leave the area. I already have it set up so they are added to the Array if they have been tagged, then removed after a certain amount of time or on death or on quit. I am just wondering if there is a way to register the array as a temporary permission, or something along those lines so that WG will register it and not let them leave the area.

    If that is not possible, is there another easier lag free way to do this? (I would prefer to use WG to my advantage so that I don't waste any unnecessary time custom coding something that is already in WG.)

    Thanks in advance!
     
Thread Status:
Not open for further replies.