Velocity-CommandLimiter
A Powerful Plugin that manipulates all commands under proxy or proxies to control display and execution
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
Velocity-CommandLimiter
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!
```toml
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 ```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: https://kuwa.dev/
Twitter(x): https://x.com/kuwamain
Discord Support Server: https://kuwa.app/discord/support
> Japanese
What Is This
プロキシやプロキシ下にある全てのコマンドを操作して表示と実行を制御する強力なPlugin
How To Use
導入前に
基本的にはLuckPerms等の権限管理プラグインと利用することをお勧めいたします
設定方法
ダウンロードしたプラグイン本体を、Velocityのプラグインフォルダに入れ、一度起動します
そうすることでデフォルトのconfigが生成されます
Configの説明
config内の`[[permissions]]`に記述した権限を持つプレイヤーに記述した設定が反映されるようになります
LuckPermsのグループ継承等で複数の権限を持つプレイヤーの場合、すべての設定が有効化されるため、制限が多い設定が優先されます
例を言うと、`default`に`commands = ["help", "list"]`が設定されていて、`guest`がデフォルトの権限を継承するようになっている場合、たとえ`guest`が`commands = ["list"]`のように設定されていても`help`を利用することはできません
```toml
全てのコマンドの表示と実行を許可する権限 以下の場合`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で保存するようにしている場合の例 ```yaml name: default permissions: - commandlimiter.default: value: true ```
Command
以下のコマンドが利用可能なコマンドです
| コマンド |エイリアス | 説明 | 必要なPermissionノード | |---------------------------|-------------|-------------------------------------------------|-----------------------| | `/commandlimiter-reload` | `/cl-reload` | プラグインのconfigを再読み込みして設定を反映します | `commandlimiter.admin`|
> ⚠️注意⚠️
コマンドで設定を再読み込みしたとしても、コマンドの表示に関してはサーバーに再接続するまでクライアントでは設定前の表示になります
これはクライアントがサーバー接続時に利用できるコマンドを取得する仕様のためです