EpicKnarvik97
d73f4d5377
Blocks dropping items in a clear region Blocks usage of XP bottles in a clear region Block TNT priming in a clear region Blocks placement of blocks across clear region borders Blocks breaking of blocks across clear region borders Blocks blocks inside clear regions from dropping items. Prevents keeping inventory on death when in a clear region, and makes sure players' inventory is cleared upon death in a clear region, to avoid the potential of players outside the region picking up the items. Prevents picking up items in a clear region Prevents pistons from extending if it would push blocks across clear region borders Prevents pistons from retracting if it would pull blocks across clear region borders Prevents interacting with items across the clear region border Prevents changing the mob inside spawners in clear regions Prevents the usage of spawn eggs in clear regions Changes Java version to 16
34 lines
1.2 KiB
Markdown
34 lines
1.2 KiB
Markdown
# Clear on WorldGuard
|
|
|
|
This plugin will clear a player's items when they enter or leave, or teleport to or from one of the configured regions.
|
|
This is mainly useful if players are able to temporarily go in creative mode in specific WorldGuard regions. A lot of
|
|
additional things are blocked within clear regions in order to prevent creative mode abuse, such as: projectiles, XP
|
|
bottle usage, spawn egg usage, changing the mob in a spawner, dropping items, picking up items, breaking, placing or
|
|
interacting with blocks across clear region borders, block drops, pistons pushing or pulling across clear region
|
|
borders, TNT priming and keeping any inventory items if dying within a clear area. This list might not be exhaustive.
|
|
|
|
## Dependencies
|
|
|
|
- WorldGuard
|
|
|
|
## Configuration
|
|
|
|
Add the identifier (name or UUID) of the world you want to specify a region for as a sub-key of clearRegions. Make sure
|
|
your world identifier is a string list "worldName: []", and add any regions you want to enable inventory clearing for to
|
|
the list of the world the region belongs to.
|
|
|
|
Example config:
|
|
|
|
```yaml
|
|
clearRegions:
|
|
world:
|
|
- "creative_building"
|
|
- "clear"
|
|
```
|
|
|
|
or
|
|
|
|
```yaml
|
|
clearRegions:
|
|
world: [ "creative_building", "clear" ]
|
|
``` |