From 5e75bf36c36b93a22b82e6e6e1b7d3474332487e Mon Sep 17 00:00:00 2001 From: sk89q Date: Tue, 6 Nov 2012 22:04:25 -0800 Subject: [PATCH] Added proposed protection models. --- .../resources/models/protection/minimal.yml | 11 +++++++++ .../models/protection/player-owned.yml | 24 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 src/main/resources/models/protection/minimal.yml create mode 100644 src/main/resources/models/protection/player-owned.yml diff --git a/src/main/resources/models/protection/minimal.yml b/src/main/resources/models/protection/minimal.yml new file mode 100644 index 00000000..37465a74 --- /dev/null +++ b/src/main/resources/models/protection/minimal.yml @@ -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. \ No newline at end of file diff --git a/src/main/resources/models/protection/player-owned.yml b/src/main/resources/models/protection/player-owned.yml new file mode 100644 index 00000000..c13c6ba8 --- /dev/null +++ b/src/main/resources/models/protection/player-owned.yml @@ -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. \ No newline at end of file