这是什么
这是一款功能强大的插件,能够操控代理服务器(Proxy)及其下游的所有命令,从而控制命令的显示与执行!支持限制和禁用特定命令。
如何使用
安装前建议
建议配合 LuckPerms 等权限管理插件一起使用。
设置方法
将下载好的插件放入 Velocity 的插件文件夹中,并启动服务器一次。
此时将会生成默认的配置文件(config)。
配置说明
配置文件中 [[permissions]] 部分所描述的设置,将应用于拥有对应权限的玩家。
如果玩家因 LuckPerms 中的组继承等原因拥有多个权限节点,所有相关的设置都会生效,因此限制最严格的设置将具有优先级。
例如:如果在 default 中设置了 commands = ["help", "list"],而 guest 继承了 default 的权限,那么即使 guest 单独设置为 commands = ["list"],help 命令也是不可用的!
# 允许查看和执行所有命令的权限,以下示例为 `commandlimiter.admin`
allAllowed = "admin"
# 是否限制没有任何权限玩家的命令显示和执行
limitNoPermissionsPlayer = true
# 各权限节点可使用的命令配置
[[permissions]]
# 权限节点的名称,以下示例为 `commandlimiter.default`
nodeName = "default"
# 是否启用白名单?
# 如果设为 false,则采用黑名单模式
whiteList = true
# 在白名单模式下,仅以下列出的命令可以被显示和执行
# 在黑名单模式下,仅以下列出的命令会被限制
# 包含子命令的命令可以通过通配符或正则表达式进行过滤
commands = ["help", "list", "me*", "msg*", "teammsg*", "tell*", "tm*", "trigger*", "w*", "random*"]
权限节点
本插件的权限节点根目录为 commandlimiter。
如果你打算使用 LuckPerms 等进行设置,需要按照如下方式进行配置:
LuckPerms 保存为 YAML 格式时的设置示例
name: default
permissions:
- commandlimiter.default:
value: true
命令
以下命令可用:
| 命令 |
别名 |
描述 |
所需权限节点 |
/commandlimiter-reload |
/cl-reload |
重新加载插件配置以应用更改 |
commandlimiter.admin |
⚠️注意⚠️
即使你通过命令重新加载了配置,客户端显示的命令列表仍会保持配置更改前的状态,直到你重新连接服务器为止。
这是因为客户端仅在连接服务器时获取可用的命令列表。
支持 SNS
SNS列表:
Twitter(X):
Discord 支持服务器:
What Is This
Powerful Plugin that manipulates all commands under proxy or proxies to control display and execution!
limit and disable command!
How To Use
Before Installation
Basically, it is recommended to use with permission management plug-ins such as LuckPerms.
How To Setup
Put the downloaded plugin into the Velocity plugin folder and run it once.
Then the default config will be generated.
Config
The settings described in [[permissions]] in config will be applied to players who have the permissions described in [[permissions]].
If a player has multiple permissions due to group inheritance in LuckPerms, etc., all settings will be activated, so the settings with the most restrictions will be given priority.
For example, if default is set to commands = [“help”, “list”] and guest inherits the default permissions, then even if guest is set to commands = [“list”], help is not available!
# Permission to view and execute all commands `commandlimiter.admin` for the following
allAllowed = "admin"
# Restrict the display and execution of all commands by players who do not have any privileges, or
limitNoPermissionsPlayer = true
# Configuration of commands available for each permission node
[[permissions]]
# Value of permission node `commandlimiter.default` for the following
nodeName = "default"
# Enable whitelist or not?
# If false, it will be in blacklist format
whiteList = true
# For whitelist, only the commands described below can be displayed and executed
# If blacklisted, only the commands described below will be restricted
# Commands containing subcommands can be filtered by wildcards or regular expressions
commands = ["help", "list", "me*", "msg*", "teammsg*", "tell*", "tm*", "trigger*", "w*", "random*"]
Permission Node
The root of the permission node for this plugin is commandlimiter.
If you want to set it up with LuckPerms etc., you need to set it up as follows
Example of LuckPerms settings saved in yaml
name: default
permissions:
- commandlimiter.default:
value: true
Command
The following commands are available
| Command |
Alias |
Description |
Required Permission Nodes |
/commandlimiter-reload |
/cl-reload |
Reload the plugin config to reflect the settings |
commandlimiter.admin |
⚠️Attention⚠️
Even if you reload the configuration with the command, the client will display the commands as they were before they were configured** until you reconnect to the server.
This is due to the fact that the client gets the commands that are available when connecting to the server.
Support SNS
SNSList:
Twitter(x):
Discord Support Server:
Japanese
What Is This
プロキシやプロキシ下にある全てのコマンドを操作して表示と実行を制御する強力なPlugin
How To Use
導入前に
基本的にはLuckPerms等の権限管理プラグインと利用することをお勧めいたします
設定方法
ダウンロードしたプラグイン本体を、Velocityのプラグインフォルダに入れ、一度起動します
そうすることでデフォルトのconfigが生成されます
Configの説明
config内の[[permissions]]に記述した権限を持つプレイヤーに記述した設定が反映されるようになります
LuckPermsのグループ継承等で複数の権限を持つプレイヤーの場合、すべての設定が有効化されるため、制限が多い設定が優先されます
例を言うと、defaultにcommands = ["help", "list"]が設定されていて、guestがデフォルトの権限を継承するようになっている場合、たとえguestがcommands = ["list"]のように設定されていてもhelpを利用することはできません
# 全てのコマンドの表示と実行を許可する権限 以下の場合`commandlimiter.admin`
allAllowed = "admin"
# 権限を何も持っていないプレイヤーのすべてのコマンドの表示と実行を制限するか
limitNoPermissionsPlayer = true
# 各 permission node で利用できるコマンドの設定
[[permissions]]
# permission node の値 以下の場合`commandlimiter.default`
nodeName = "default"
# ホワイトリストを有効にするか
# falseの場合はブラックリスト形式になる
whiteList = true
# ホワイトリストの場合は、以下に記述したコマンドのみ表示と実行が可能になる
# ブラックリストの場合は記述したコマンドのみ制限される~~~~
# サブコマンドを含むコマンドの場合、ワイルドカードや正規表現でフィルタ可能
commands = ["help", "list", "me*", "msg*", "teammsg*", "tell*", "tm*", "trigger*", "w*", "random*"]
Permission Node
このプラグインの permission node の root は commandlimiter になっています
LuckPerms等で設定する場合は以下のように設定する必要があります
LuckPermsの設定をyamlで保存するようにしている場合の例
name: default
permissions:
- commandlimiter.default:
value: true
Command
以下のコマンドが利用可能なコマンドです
| コマンド |
エイリアス |
説明 |
必要なPermissionノード |
/commandlimiter-reload |
/cl-reload |
プラグインのconfigを再読み込みして設定を反映します |
commandlimiter.admin |
⚠️注意⚠️
コマンドで設定を再読み込みしたとしても、コマンドの表示に関してはサーバーに再接続するまでクライアントでは設定前の表示になります
これはクライアントがサーバー接続時に利用できるコマンドを取得する仕様のためです
评论 0
登录后参与评分
还没有评论,来抢沙发吧