mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-16 23:55:23 +01:00
Added proposed protection models.
This commit is contained in:
parent
a5814c4b32
commit
5e75bf36c3
11
src/main/resources/models/protection/minimal.yml
Normal file
11
src/main/resources/models/protection/minimal.yml
Normal file
@ -0,0 +1,11 @@
|
||||
- id: worldguard.build
|
||||
when: block-break
|
||||
if:
|
||||
- ?: region-of
|
||||
block: target
|
||||
- ?: is-member
|
||||
entity: source
|
||||
negate: true
|
||||
then:
|
||||
- ?: cancel
|
||||
- ?tell: Sorry, you don't have permission for this area.
|
24
src/main/resources/models/protection/player-owned.yml
Normal file
24
src/main/resources/models/protection/player-owned.yml
Normal file
@ -0,0 +1,24 @@
|
||||
- id: worldguard.build
|
||||
when: block-break
|
||||
if:
|
||||
- ?: region-of
|
||||
block: target
|
||||
- ?: is-member
|
||||
entity: source
|
||||
negate: true
|
||||
then:
|
||||
- ?: cancel
|
||||
- ?tell: Sorry, you don't have permission for this area.
|
||||
- id: worldguard.pvp
|
||||
when: entity-damage
|
||||
if:
|
||||
- ?: region-of
|
||||
entity: target
|
||||
- ?: is-member
|
||||
entity: target
|
||||
- ?: is-member
|
||||
entity: source
|
||||
negate: true
|
||||
then:
|
||||
- ?: cancel
|
||||
- ?tell: Sorry, you can't attack that person in this area.
|
Loading…
Reference in New Issue
Block a user