Перейти к содержимому
Mineforgian

AdvancedCommandBlocker

Professional command interception plugin, extremely flexible, can intercept various commands or Tab-completion through configuration of different rules!

Загрузки
169
Подписчики
0
Обновлён
19 июня 2025 г.
Лицензия
MIT

Опубликован 19 июня 2025 г.

🚫 AdvancedCommandBlocker

  • Based on Bukkit and Spigot APIs. Supports Minecraft 1.12.2 to 1.21.1+ and future versions.
  • Professional command interception plugin, extremely flexible, can intercept various commands or Tab-completion through configuration of different rules!

✨ Features

  • 🔒 Block specific commands by exact match, prefix, or regex
  • 👥 Apply different rules per player group or permission
  • 🌐 Supports PlaceholderAPI and custom deny messages
  • 🧩 Fully configurable via YAML
  • 🔄 Reloadable in-game without restarting the server

⚙️ US Example Configuration

# Commands for the AdvancedCommandBlocker plugin
# /acb reload – Reload the configuration!
# /advancedcommandblocker reload - Reload the configuration!

rules:
  allSubCommands:
    # BLACKLIST mode: block the listed commands
    # WHITELIST mode: only allow the listed commands
    # Warning: You cannot configure both BLACKLIST and WHITELIST at the same time; although allowed by YAML, the plugin will conflict!
    type: BLACKLIST
    # Permission that bypasses this rule; players with this permission will not be blocked
    permission: "cab.allSubCommands"
    # Message sent to the player when a command is blocked; supports PlaceholderAPI placeholders
    blockMessage: "&l&8| &cError &8» &cYou do not have permission to use this command."
    commands:
      # - "/help*"
      # The asterisk (*) blocks all commands starting with /help.
      - "/help*"

  commands:
    # BLACKLIST mode: block the listed commands
    # WHITELIST mode: only allow the listed commands
    # Warning: You cannot configure both BLACKLIST and WHITELIST at the same time; although allowed by YAML, the plugin will conflict!
    type: BLACKLIST
    # Permission that bypasses this rule; players with this permission will not be blocked
    permission: "cab.command"
    # Message sent to the player when a command is blocked; supports PlaceholderAPI placeholders
    blockMessage: "&l&8| &cError &8» &cYou do not have permission to use Bukkit commands."
    commands:
      # - "/bukkit:?"
      # Blocks the exact /bukkit:? command.
      - "/bukkit:?"
      - "/plugins"

  tp:
    # BLACKLIST mode: block the listed commands
    # WHITELIST mode: only allow the listed commands
    # Warning: You cannot configure both BLACKLIST and WHITELIST at the same time; although allowed by YAML, the plugin will conflict!
    type: BLACKLIST
    # Permission that bypasses this rule; players with this permission will not be blocked
    permission: "acb.tpCommand"
    # Message sent to the player when a command is blocked; supports PlaceholderAPI placeholders
    blockMessage: "&l&8| &cError &8» &cYou do not have permission to use the tp command."
    commands:
      # - "/tp <s:t> <s:f>"
      # <s:t> is a true-text placeholder, <s:f> is a false-text placeholder
      # Explanation: A player trying to use /tp player01 player02 will be blocked, but /tp player01 will not be.

      # - "/tp <s:t> <n:t> <n:t> <n:f>"
      # <n:t> is a true-number placeholder, <n:f> is a false-number placeholder
      # The following numeric placeholders are supported: "123", "-45.6", "~", "~0", "~1.23", "1e10", "1.8e308"
      # Explanation: A player trying to use /tp player01 0 0 10 will be blocked, but /tp player01 0 0 will not be.
      #              Players cannot use /tp player01 player02 or /tp player01 0 0 10, but can use /tp 0 0 10 unless you add more specific rules.

      # Use placeholders to indicate which argument position to start blocking (arguments are space-separated; e.g. /tp player01 player02 has three arguments).
      - "/tp <s:t> <s:f>"
      - "/tp <s:t> <n:t> <n:t> <n:f>"

  tab:
    # HIDE_TAB_BLACKLIST: hide tab completions for listed commands (but do not block execution)
    # HIDE_TAB_WHITELIST: only show tab completions for listed commands (but do not block execution)
    # Warning: You cannot configure both HIDE_TAB_BLACKLIST and HIDE_TAB_WHITELIST at the same time; although allowed by YAML, the plugin will conflict!
    type: HIDE_TAB_BLACKLIST
    # Force-close the player's chat input when they press Tab: true = close chat and block Tab; false = do not close but block Tab
    closeChat: false
    # Permission that bypasses this rule; players with this permission will not be blocked when pressing Tab
    permission: "acb.tabCommand"
    # In tab mode, the <s:t>, <s:f>, <n:t>, <n:f> and * placeholders work the same way as in command mode.
    commands:
      - "/tp <n:t> <n:t> <n:f>"
      - "/help*"

Ченджлог

1.4Релиз1.21.4, 1.21.5, 1.21.6 · 19 июня 2025 г.

Fix some errors!

1.2Релиз1.20, 1.21, 1.21.1 · 19 июня 2025 г.
  1. Optimize the loading logic for zh_cn-config.yml to load it together with config.yml. Removing the zh_cn-config.yml file alone will not trigger the loading logic.
  2. Optimize the blockMessage interception success information so that no interception information is prompted when the value is null.
  3. If this update does not affect your use, you do not need to update this version; it only includes some logical optimizations!

Комментарии

Загружаем…