A Spigot plugin that clears a player's inventory when entering or exiting specific WorldGuard regions. This is mainly used to prevent items from moving between creative and survival areas.
Go to file
2023-12-17 04:07:51 +01:00
src/main Adds info about how to configure the plugin 2023-12-17 04:07:51 +01:00
.gitignore Initial commit 2023-12-16 21:46:06 +01:00
pom.xml Initial commit 2023-12-16 21:46:06 +01:00
README.md Adds info about how to configure the plugin 2023-12-17 04:07:51 +01:00

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:

clearRegions:
  world:
    - "creative_building"
    - "clear"

or

clearRegions:
  world: [ "creative_building", "clear" ]