From 73ae5f0634ec42bb5a16d1f7e2c6eae1d9106286 Mon Sep 17 00:00:00 2001 From: cuqmbr Date: Sun, 3 Aug 2025 22:50:12 +0300 Subject: [PATCH] add and configure CommandWhitelist allows to forbid certain command execution and hide their completion --- .../CommandWhitelist-Bukkit-2.12.0.jar | 3 ++ src/plugins/CommandWhitelist/config.yml | 37 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 src/plugins/CommandWhitelist-Bukkit-2.12.0.jar create mode 100644 src/plugins/CommandWhitelist/config.yml diff --git a/src/plugins/CommandWhitelist-Bukkit-2.12.0.jar b/src/plugins/CommandWhitelist-Bukkit-2.12.0.jar new file mode 100644 index 0000000..b0bdc35 --- /dev/null +++ b/src/plugins/CommandWhitelist-Bukkit-2.12.0.jar @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27d0252fd9aea95be34f50985fae3f38769a8f33f932941c8a6cf2282dfee687 +size 1613823 diff --git a/src/plugins/CommandWhitelist/config.yml b/src/plugins/CommandWhitelist/config.yml new file mode 100644 index 0000000..efb904a --- /dev/null +++ b/src/plugins/CommandWhitelist/config.yml @@ -0,0 +1,37 @@ + +# Messages use MiniMessage formatting (https://docs.adventure.kyori.net/minimessage/format) +messages: + prefix: '' + command_denied: '' + subcommand_denied: '' + no_permission: '' + no_such_subcommand: '' + config_reloaded: Configuration reloaded. + added_to_whitelist: Whitelisted command %s for permission + %s + removed_from_whitelist: Removed command %s from permission + %s + group_doesnt_exist: Group doesn't exist or error occured + +# Do not enable if you don't have issues with aliased commands. +# This requires server restart to take effect. +use_protocollib: false + +# Valid message types are CHAT and ACTIONBAR. Does nothing on velocity. +message_type: CHAT +groups: + default: + commands: + - tell + - reply + - spawn + - links + - menu + - servers + subcommands: [] + role_moder: + commands: + - vmute + - vunmute + - vmutelist + subcommands: [] -- 2.45.2