forked from alkarinv/BattleArena
-
Notifications
You must be signed in to change notification settings - Fork 1
Worldguardregions
alkarinv edited this page Oct 30, 2012
·
8 revisions
- First, use your //wand to select an area, then
- /arena alter <arena name> addregion
- Open up your config.yml
- Add in the worldguard options to any stages you would like them in
- Reload the config /arena reload (if you are using an addon plugin like spleef /spleef reload)
This is what the config looks like before
### Skirmish skirmish: enabled: true type: versus onStart: options: [teleportIn, pvpOn] onComplete: options: [teleportOut] winner: options: [health=20, hunger=20]After changing, adding in wgNoLeave and wgClearRegion
### Skirmish skirmish: enabled: true type: versus onStart: options: [teleportIn, pvpOn, wgNoLeave] onComplete: options: [teleportOut, wgClearRegion] winner: options: [health=20, hunger=20]
You can now reset an arena back to the state it was at when you first typed /arena alter <arena name> addRegion. To do this you simply add wgResetRegion to whichever stage you would like. You can add the stage if it doesn't exist (just make sure it lines up appropriately with other stages! Yaml Files are very finicky!)
Steps
- Open up your config.yml
- Add in the worldguard option wgResetRegion
### Skirmish skirmish: onOpen: options: [wgResetRegion] onComplete: options: [teleportOut, wgResetRegion]
More options will be added as requested
- wgClearRegion : clears the region of any items
- wgNoLeave : players in the arena can't leave the region
- wgNoEnter : players cant enter the arena region (except for fighting players)
- wgResetRegion : resets the region to the way it was when you added it via /arena alter addRegion.