WorldGuard integration

As of v2.2.1, PvPToggle can integrate directly with WorldGuard's PvP flag in WorldGuard-specified regions.

As of v3.0.0 the WorldGuard integration has been drastically improved - it can be turned off or on globally via the plugin configuration, and individual regions must be 'tagged' for usage in PvPToggle (otherwise, the region will be ignored, regardless of the PvP flag's status).

Important commands

Tagged regions are stored per-world in the regions.yml file, and are able to be added and removed via the following commands:

/pvp region add <region>Tags a region for use by PvPToggle in player's current world
/pvp region add <region> <world>Tags a region for use by PvPToggle in the specified world
/pvp region remove <region>Untags a region for use by PvPToggle in player's current world
/pvp region remove <region> <world>Untags a region for use by PvPToggle in the specified world

Setting the correct WorldGuard flag

In addition to tagging the region in PvPToggle, the region's PvP flag must also be set in WorldGuard:

/region flag <region> pvp allowSets WorldGuard's PvP flag to allow PvP in specified region - PvPToggle will assume PvP must be enabled in regions with PvP flag set to 'allow'
/region flag <region> pvp denySets WorldGuard's PvP flag to deny PvP in specified region - PvPToggle will assume PvP must be denied in regions with PvP flag set to 'deny
/region flag <region> pvp noneResets WorldGuard's PvP flag - PvPToggle will now ignore this region

Comments

Posts Quoted:
Reply
Clear All Quotes