forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 69
No Magic Zones
JasperLorelai edited this page Oct 10, 2023
·
6 revisions
No Magic Zones are defined in zones.yml
. The region can be defined by two points for a cuboid region or a WorldGuard region.
Option | Description | Variable Type | Default Value |
---|---|---|---|
enabled |
Defines if the plugin should load this zone. | Boolean | true |
type |
Valid zone types: cuboid or worldguard . |
String | null |
priority |
The priority of the zone is considered when multiple zones are overlapping. Scroll below for more info about Zone Processing. | Integer | 0 |
message |
String sent to the caster if the spell failed due to the caster being in this zone. | String | "You are in a no-magic zone." |
allow-all |
Defines whether all spells should be allowed in the zone. Scroll below for more info about Zone Processing. | Boolean | false |
disallow-all |
Defines whether all spells should be disallowed in the zone. Scroll below for more info about Zone Processing. | Boolean | true |
This spell supports Spell Filter options. |
Option | Description | Variable Type | Default Value |
---|---|---|---|
world |
Defines the world location of the zone. | String | null |
point1 |
Defines the first corner of the cuboid. This is a string in the format "x,y,z" (e.g. 10,100,0 ). |
String | null |
point2 |
Same as above, but for the second corner. | String | null |
Option | Description | Variable Type | Default Value |
---|---|---|---|
world |
Defines the world location of the zone. | String | null |
region |
Define the WorldGuard region name to use the cuboid location. | String | null |
When a spell is cast the no magic zones are processed in the order based on defined priority
. Higher priority means the zone will be processed first. When a zone is processed, it performs the following checks:
- If
denied-spells
ordenied-spell-tags
is defined and the spell is in that list, then the spell will be disallowed and zone processing will stop. - If
spells
orspell-tags
are defined and the spell is in that list, then the spell will be allowed and zone processing will stop. - If
disallow-all
is true and 1. is not set, the spell will be disallowed and zone processing will stop. - If
allow-all
is true and 2. is not set, then the spell will be allowed and zone processing will stop. - If none of the above checks succeeds, then zone processing will continue to the next zone.
- If there are no more zones to check, then the spell will be allowed.