InteractionGuard is a lightweight and highly configurable plugin that lets you block left-click and right-click interactions with virtually any block in Minecraft.
Features
- Block left-click and/or right-click interactions
- Supports any Minecraft block
- Wildcard support and block groups
- Per-rule bypass permissions
- Custom messages for every rule
- Bukkit color code support (&c, &a, &e, etc.)
- Live config reload
- Built-in rule testing command
- Supports Minecraft versions 1.17+
Example Use Cases
- Disable all trapdoors
- Prevent players from opening chests
- Lock barrels while still allowing players to break them
- Restrict access to decorative blocks that have interactions
- Create custom interaction restrictions without region plugins
Commands
/interactionguard reload - interactionguard.reload
Reloads the configuration without restarting the server.
/interactionguard list - interactionguard.list
Displays all loaded rules.
/interactionguard test - interactionguard.test
Tests the block you are currently looking at and shows:
- Whether the interaction would be blocked
- Which rule matched
- Which permission bypasses the rule
- Which message would be shown
interactionguard.admin permission grants access to all administrative commands.
interactionguard.bypass.{rule_name} permission bypasses a specific rule.
Configuration
InteractionGuard uses a simple rule-based system.
Each rule can define:
- Whether it is enabled
- One or more materials
- One or more actions
- A bypass permission
- A custom message
You can find examples in the configuratuion files!
Metrics
This plugin uses bStats to collect anonymous usage statistics. You may disable it any time in the bStats folder.
Need Help?
If you find a bug, have an idea, or would like a feature added, feel free to get in touch.
I originally made this plugin for myself, but I'm happy if it turns out to be useful for other servers too.