• 点击文字跳转示例

    欢迎加入社区交流群! 点击加入.

CommandBlockerPro-命令BlockerPro

转载 开源 免费 插件 CommandBlockerPro-命令BlockerPro v1.1

没有下载权限
版权类型
转载
插件英文名称
CommandBlockerPro
原帖地址
https://www.spigotmc.org/resources/commandblockerpro.116687/
源代码
https://github.com/JadedMC/CommandBlockerPro
支持版本(Java)
1.8,1.19,1.20,1.20.5
CommandBlockerPro

CommandBlockerPro 是一个功能丰富的命令阻止插件,适用于运行 Minecraft 1.8 或更高版本的 Spigot 和 Paper 服务器。它专为试图将其配置提升到新水平的服务器而设计,能够根据不同的条件设置多个不同的过滤器,并具有支持 PlaceholderAPI 的可配置块消息。


特征
  • 能够定义具有不同权限的多个规则。
  • 阻止完整命令。
  • 阻止包含给定字符串的命令/
  • 阻止基于正则表达式的命令。
  • 基于上述条件将特定命令列入白名单。
  • 隐藏(不阻止)具有相同条件的特定命令。
  • 用于与插件交互的 API。
  • MiniMessage 支持
  • PlaceholderAPI 支持

命令
» /cb reload - 重新加载配置文件。

权限
» commandblocker.admin - 授予对插件命令的访问权限。

配置
YAML:
#  ________  ________  ________
# |\   ____\|\   __  \|\   __  \
# \ \  \___|\ \  \|\ /\ \  \|\  \
#  \ \  \    \ \   __  \ \   ____\
#   \ \  \____\ \  \|\  \ \  \___|
#    \ \_______\ \_______\ \__\
#     \|_______|\|_______|\|__|
#
# Version ${project.version}
# by JadedMC

# The message sent to a player when a command is blocked.
# Can be overridden by adding this setting to each rule.
# Supports legacy color codes, but you should be using MiniMessage instead (https://docs.advntr.dev/minimessage/format.html).
blockMessage: "<red><bold>Error</bold> <dark_gray>» <red>You do not have access to that command."

# Defines different rules that can be enforced when determining when to block or hide commands.
# You can add as many as you want.
# You can also name them anything you want, I just used numbers for simplicity.
rules:
  1:
   # Changes now the rule should operate.
    # Options:
    #  - BLACKLIST (Blocks provided commands)
    #  - WHITELIST (Only allows the provided commands)
    #  - HIDE (Hides the provided commands from tab complete, but does not block them)
    type: BLACKLIST

    # The permission node required to bypass the rule.
    # You can change this to whatever you want, and can be different for each rule.
    bypassPermission: "cb.admin"

    # The list of commands the rule should apply to.
    # Each one should begin with a '/'
    commands:
     - /?
      - /about
      - /bukkit:?
      - /bukkit:about
      - /bukkit:help
      - /bukkit:pl
      - /bukkit:plugins
      - /bukkit:ver
      - /bukkit:version
      - /help
      - /icanhasbukkit
      - /paper
      - /paper:paper
      - /pl
      - /plugins
      - /pufferfish
      - /pufferfish:pufferfish
      - /purpur
      - /purpur:purpur
      - /spigot
      - /spigot:spigot
      - /ver
      - /version

  # Example of blocking commands containing a given string.
  2:
    type: HIDE
    bypassPermission: "cb.admin"

    # This time we are looking for all commands that have a colon (':') in them.
    # You can use both "contains" and "commands" in the same rule.
    # You can add as many to check as you want.
    contains:
     - ":"



[IMG]
作者
搬运姬
下载
1
查看
30
首次发布
最后更新
评分
0.00 星 0 星

来自搬运姬的更多资源

后退
顶部