PerWorldCommands icon

PerWorldCommands -----

Restrict specific commands to specific worlds



PerWorldCommands
Restrict specific commands to specific worlds

[​IMG]
[​IMG]
[​IMG]

✨ 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

  1. Configure which commands are allowed in each world
  2. Players in configured worlds can ONLY use the specified commands
  3. Players in unconfigured worlds can use ANY command
  4. 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

  1. Download the plugin JAR file
  2. Place it in your server's plugins folder
  3. Restart your server
  4. Edit config.yml to configure your world restrictions
  5. 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!
Resource Information
Author:
----------
Total Downloads: 10
First Release: Mar 3, 2026
Last Update: Mar 3, 2026
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings