32 lines
959 B
Markdown
32 lines
959 B
Markdown
# Clear on WorldGuard
|
|
|
|
This plugin will clear a player's items when they enter or leave one of the configured regions. This is mainly useful
|
|
if players are able to go in creative mode in specific WorldGuard regions. This plugin would prevent players from
|
|
leaving with all kinds of items. Note that this plugin won't necessarily be useful unless the region has proper
|
|
restrictions, like denying item dropping, and denying any sell commands within the region.
|
|
|
|
## 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" ]
|
|
``` |