TabCompleteFilter Tab补全过滤器

作者:Lee 发布时间:2020年2月15日 原生版本:未知 测试支持:1.13,1.14,1.15,1.16,1.17,1.18,1.19,1.20

过滤用户可以在Tab-Complete上看到的命令。

点此下载

插件详细介绍

TabCompleteFilter 是一款 Minecraft 插件,允许你通过权限组过滤 Tab 补全命令。玩家可以拥有多个组权限进行过滤,支持在游戏中配置命令 Tab 补全。插件完全可翻译和配置,可以自定义/创建已注册插件命令的 Tab 补全参数。支持 Bungeecord/Waterfall (需要 Waterfall),需要 Java 16+。

⚙️ TabCompleteFilter

📍 特性

  • 通过权限组过滤 Tab 补全命令
  • 玩家可以拥有多个组权限进行过滤
  • 在游戏中为组配置命令 Tab 补全
  • 完全可翻译和配置
  • 自定义/创建已注册插件命令的 Tab 补全参数
  • Bungeecord/Waterfall 支持 (需要 Waterfall)
  • 需要 Java 16+

📚 指令

常规指令

  • /tcf reload - 重载配置文件。
  • /tcf group add - 创建一个新的补全组。
  • /tcf group remove - 移除一个补全组。
  • /tcf group permission add - 给一个组添加权限节点。
  • /tcf group permission remove - 移除一个组的权限节点。
  • /tcf group priority - 设置组的优先级 (越高越优先)。
  • /tcf group command add - 添加一个命令到组里。
  • /tcf group command remove - 从组里移除一个命令。
  • /tcf group command argument add - 添加一个参数到命令里。
  • /tcf group command argument remove - 从命令里移除一个参数。
  • /tcf group command argument suggest - 给参数添加一个建议值。
  • /tcf group command argument suggest remove - 移除参数的一个建议值。

Bungee 指令

  • /tcfilter reload - 重载配置文件。
  • /tcfilter group add - 创建一个新的补全组。
  • /tcfilter group remove - 移除一个补全组。
  • /tcfilter group permission add - 给一个组添加权限节点。
  • /tcfilter group permission remove - 移除一个组的权限节点。
  • /tcfilter group priority - 设置组的优先级 (越高越优先)。
  • /tcfilter group command add - 添加一个命令到组里。
  • /tcfilter group command remove - 从组里移除一个命令。
  • /tcfilter group command argument add - 添加一个参数到命令里。
  • /tcfilter group command argument remove - 从命令里移除一个参数。
  • /tcfilter group command argument suggest - 给参数添加一个建议值。
  • /tcfilter group command argument suggest remove - 移除参数的一个建议值。

🔑 权限

  • tabcompletefilter.command.tcf - 允许使用 /tcf 命令。
  • tabcompletefilter.command.tcfilter - 允许使用 /tcfilter 命令 (BungeeCord)。

🛠️ 配置示例

config.yml


# +-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
# |  TabCompleteFilter Configuration                                                                                                                                  |
# +-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
# |  priority: The higher the priority, the more precedence the group has when determining tab completions.                                                        |
# |  permissions: A list of permissions that a player must have at least one of to be able to use the tab completions in this group.                               |
# |  commands: A list of commands that will be filtered for players who have the permissions in this group.                                                        |
# |    arguments: A list of arguments that will be filtered for the command.                                                                                       |
# |      suggestions: A list of suggestions that will be offered to the player when they tab complete the argument.                                               |
# +-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
# |  For more information, visit the wiki: https://github.com/SirLeezus/TabCompleteFilter/wiki                                                                      |
# +-----------------------------------------------------------------------------------------------------------------------------------------------------------------+

groups:
  example_group:
    priority: 1
    permissions:
      - "example.permission"
    commands:
      example_command:
        arguments:
          example_argument:
            suggestions:
              - "suggestion1"
              - "suggestion2"

  admin_group:
    priority: 10
    permissions:
      - "tabcompletefilter.admin"
    commands:
      op:
        arguments:
          player:
            suggestions:
              - "<player>" # <player> is a special suggestion that will be replaced with the online player names.

bungee_config.yml (BungeeCord)


# +-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
# |  TabCompleteFilter Configuration                                                                                                                                  |
# +-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
# |  priority: The higher the priority, the more precedence the group has when determining tab completions.                                                        |
# |  permissions: A list of permissions that a player must have at least one of to be able to use the tab completions in this group.                               |
# |  commands: A list of commands that will be filtered for players who have the permissions in this group.                                                        |
# |    arguments: A list of arguments that will be filtered for the command.                                                                                       |
# |      suggestions: A list of suggestions that will be offered to the player when they tab complete the argument.                                               |
# +-----------------------------------------------------------------------------------------------------------------------------------------------------------------+
# |  For more information, visit the wiki: https://github.com/SirLeezus/TabCompleteFilter/wiki                                                                      |
# +-----------------------------------------------------------------------------------------------------------------------------------------------------------------+

groups:
  bungee_example_group:
    priority: 1
    permissions:
      - "bungee.example.permission"
    commands:
      bungee_command:
        arguments:
          bungee_argument:
            suggestions:
              - "bungee_suggestion1"
              - "bungee_suggestion2"

  bungee_admin_group:
    priority: 10
    permissions:
      - "tabcompletefilter.bungee.admin"
    commands:
      glist:
        arguments:
          server:
            suggestions:
              - "<server>" # <server> is a special suggestion that will be replaced with the online server names.

🔗 外部链接