✨ Features
- World-Based Command Restrictions - Define which commands are allowed in each world
- Bypass Permission - Allow specific players to bypass all restrictions
- Hot Reload - Reload configuration without restarting the server
- Hex Color Support - Use custom colors in messages with &#RRGGBB format
- Namespaced Commands - Support for commands like minecraft:tp
- Lightweight & Fast - Efficient in-memory caching for zero performance impact
- Case Insensitive - Commands and world names are case-insensitive
How It Works
- Configure which commands are allowed in each world
- Players in configured worlds can ONLY use the specified commands
- Players in unconfigured worlds can use ANY command
- Players with bypass permission ignore all restrictions
⚙️ Configuration
Code (YAML):
# Message sent when a player tries to use a blocked command
blocked-message
:
"&cYou cannot use this command in this world!"
# Command restrictions per world
commands:
world
:
- kit
- warp
- tp
world_nether
:
- kit
creative
:
- fly
- tp
spawn
:
- warp
Permissions
Code (Text):
perworldcommands.bypass - Bypass all command restrictions (default: op)
perworldcommands.reload - Reload the plugin configuration (default: op)
Commands
Code (Text):
/pwc reload - Reload the configuration
Examples
Example 1: Survival World
Only allow basic commands in survival world:
Code (YAML):
commands:
survival
:
- home
- sethome
- spawn
Requirements
- Minecraft 1.20+
- Spigot or Paper server
- Java 17 or higher
Installation
- Download the plugin JAR file
- Place it in your server's plugins folder
- Restart your server
- Edit config.yml to configure your world restrictions
- Run /pwc reload to apply changes
Support
If you encounter any issues or have suggestions, please report them on the GitHub issues page.
⭐ Like this plugin?
If you find this plugin useful, please leave a review and rating!