Repository navigation
v2.0.0 — Live Web Editor, Execution-Level Argument Rules, Discord Alerts, CommandWhitelist Import & Folia
SunshineCommandGuard 2.0.0
Migration, integrations, a Live Web Command Editor, and execution-level argument filtering.
Upgrade notes
- Argument rules now block execution.
argsrules previously filtered only tab-completion; starting in 2.0.0, the first argument of an allowed command is checked when it runs as well. Review yourargssections and test with/cmdguard test <player> <command> <arg>before upgrading a live server. - API:
BlockReasonhas a new constant,ARGUMENT_RULE. - Existing
config.ymlfiles continue to work without changes.
Added
- Live Web Command Editor (
/cmdguard editor&/cmdguard apply <code>): uploads your server's registered commands and currentconfig.ymlto https://sunshine-mc.net/en/cmdguard/ so you can allow, hide, or block commands per group in your browser and apply them live with automatic backup (includes a 3-day free trial per server, then unlocked with apro-key; manual YAML export is always free). /cmdguard import commandwhitelistreadsplugins/CommandWhitelist/config.ymland writes a reviewableconfig.imported.yml: groups, commands, and blocked sub-commands asargsdeny rules, plus the LuckPerms commands to grant each group.config.ymlis never touched.- Discord alerts for blocked attempts via webhook (
monitoring.discord): per-player cooldown, per-minute cap, rate-limit (HTTP 429) back-off, mentions disabled, and anonly-reconnaissancemode that posts only/plugins,/version, and namespaced probes. The webhook URL is never written to the log. - PlaceholderAPI placeholders:
%cmdguard_group%,%cmdguard_visible%,%cmdguard_filter%. They read cached data only, so they are safe on asynchronous scoreboards. - Folia support (
folia-supported: true). Per-player work runs on the player's own scheduler on Folia; behavior on Paper is unchanged. /cmdguard test <player> <command> [args...]shows whether the argument rule allows the first argument.
Fixed
- Security:
argsdeny/allow rules are enforced on execution, including namespaced forms (/minecraft:gamemode creative) and/execute ... runpayloads.