PerWorldCommands (Multiverse support?)

Discussion in 'Plugin Requests' started by miner0914, Nov 19, 2022.

  1. Offline


    Minecraft version: 1.18.2/

    Suggested name: PerWorldCommands

    What I want: I'd like a perworldcommand plugin that hooks into multiverse, basically if you flag a command using the plugin, It disables it in all worlds till you whitelist it.


    /pwc addCommand (command here) -- Example: /pwc addCommand kit (disables kit in all worlds till its whitelisted)
    /pwc addWhitelist (command that's added in the command list) (world) Example: /pwc addWhitelist kit sand (enables /kit command in sand world)
    /pwc removeCommand (command here) (same as addCommand but its the opposite)
    /pwc reload (reloads plugin obv)

    Please make sure there's a config to check command name or the full command, for example

    in the config when onlyCheckCommandName is false
    and you execute /kit command, It doesn't work but if you do something like /kit pvp it works.
    and in the config when onlyCheckCommandName is true
    and you execute /kit command, It doesn't work even if you do /kit pvp, It entirely disables it.

    Please make sure it doesn't disable any command before its added in the list using addCommand, so it only affects the commands which are added using /pwc addCommand

    config example:

    onlyCheckCommandName: false/true
    - sand
    - world
    - etc

    When I'd like it by: As soon as possible
  2. Online

    timtower Administrator Administrator Moderator

    @miner0914 This is difficult as not all plugins use the normal command registration system.

Share This Page