So, I'm wondering how I could start this, I'm trying to make a plugin on when a player is in pvp his pvp is enabled for 30 seconds, but during those 30 seconds he's allowed to pvp with people IN SPAWN but only with people who are also in pvp. How can I go about this, also can someone link me the Worldedit API docs.
http://docs.sk89q.com Setup a region for spawn, Get when a player enter that region, Start a timer for 30 seconds, Set a flag(if possible) for the player to pvp, When the timer runs out remove the flag. This is just an idea, i haven't used worldgaurd API in a while, and I can't recall if there is a person player flag available for allow pvp. I believe this is the updated docs for worldedit https://cdn.clout-team.com/team/javadocs/worldedit/6.1.7-SNAPSHOT/