Repository navigation
Releases
SunshineCommandGuard 2.0.1
Privacy fix for the Live Web Editor. Upgrading is recommended for everyone who
uses /cmdguard editor.
Fixed
/cmdguard editorno longer uploads secrets. Yourpro-keyand
monitoring.discord.webhook-urlare blanked beforeconfig.ymlis sent to the
web editor./cmdguard applyputs your local values back, so applying a web
config never wipes them. A value you type into the web editor still wins./cmdguard editorrefuses to upload aconfig.ymlthat is not valid YAML and
tells you to fix it first, instead of sending the raw file.- Commands from your server now show up in the web editor. Before, the editor
could fall back to its demo command list. This was fixed on the website, so
2.0.0 benefits too.
If you ran /cmdguard editor on 2.0.0 with a Discord webhook configured, create
a new webhook in Discord and replace the old URL.
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.
SunshineCommandGuard v1.5.0
Paper 26.x support and a security hardening pass. One jar runs on Paper
1.21.x through 26.x.
Added
- Paper 26.x support. The jar is still built against the Paper 1.21.4 API
(Java 21); every server API it calls resolves against Paper 26.2. /execute ... run <command>is now filtered. The payload afterrun
(including nestedexecutechains and theminecraft:/bukkit:forms) goes
through the same group, grant, permission-sync and privacy checks as a direct
command, so an allowedexecutecan no longer run a blocked command.- Expired temporary grants now refresh the player's command list within about
20 seconds, so the command disappears from their client without a relog. - Config warning when a list option is written as a single value, e.g.
commands: help. The value is accepted as a one-item list instead of
silently becoming empty, and the warning shows in the reload summary.
Fixed
- Security: player-controlled text (
{cmd},{player}) in blocked, privacy and
staff-notification messages is no longer parsed as MiniMessage. Previously a
blocked command containing tags could inject clickable links or formatting
into staff chat. Templates that use placeholders inside tag arguments keep
working. - Security: the filter now fails closed. An unexpected error while evaluating a
command blocks it (and hides it from the command list) instead of allowing
it; the error is logged. - Tab-completion applies the
/pluginsand/helpprivacy rules to command
suggestions, matching the command list sent to the client. - Tab-completion no longer returns unfiltered suggestions in the short window
after/cmdguard reloadorrefreshwhile profiles are being rebuilt.
Enumeration probes are cancelled before that check. OP and bypass players
keep full completions. - A block can no longer be undone by another plugin un-cancelling the command
event at a later priority. - The update notifier validates release links by host and path, not by string
prefix.
Changed
- Reads the plugin version through
getPluginMeta()instead of the deprecated
getDescription(). A server API mismatch while indexing plugin commands is
logged as SEVERE instead of silently leavingplugin:entries empty.
Upgrading
Replace the old jar with SunshineCommandGuard-1.5.0.jar and restart. No config changes are required.
SunshineCommandGuard v1.4.3
SunshineCommandGuard v1.4.3
What's Changed
Bugfix
/cmdguard grantduration tab-completion now suggests the documented preset2hinstead of1h, matching the command help and the README (30s,10m,2h,1d). Every suggested value was already accepted by the duration parser; only the suggestion list was inconsistent.
Testing
- New regression test asserting the completion preset list (
GuardCommandTabTest). - Full test suite green: 169 tests, 0 failures, 0 skipped.
- Java 21 clean build verified.
Full Changelog: v1.4.2...v1.4.3
SunshineCommandGuard v1.4.2
SunshineCommandGuard v1.4.2
What's Changed
Bugfix
- Tab-completion no longer leaks argument suggestions for commands that are blocked for the player.
- The asynchronous completion path now requires the command root to be runnable (visible command, hidden-but-runnable alias, or temporary grant) before serving argument completions.
- Hidden aliases keep their configured argument completion; blocked commands return none.
- Commands hidden by the anti-enumeration namespace policy are also excluded from argument completion.
Testing
- New regression test covering blocked commands and hidden aliases.
- Full test suite green.
- Java 21 clean build verified.
Full Changelog: v1.4.1...v1.4.2
SunshineCommandGuard v1.4.1
SunshineCommandGuard v1.4.1
What's Changed
Production hardening
- Improved async tab-completion safety by removing unsafe permission lookups from asynchronous paths.
- Added safe permission snapshots for command visibility decisions.
- LuckPerms group/permission changes now invalidate and refresh CommandGuard player state automatically.
- Player runtime caches are cleaned when players disconnect.
- Missing
enabledconfiguration now safely defaults to disabled.
Security correctness
- Temporary command grants now use exact canonical command tokens.
- A grant for
pluginsno longer implicitly grantsbukkit:pluginsorminecraft:plugins. - Namespace protection behavior is explicitly covered by regression tests.
Update notifications
- Added optional GitHub Releases update checking.
- Console can notify server owners when a newer version is available.
- Administrators can receive a one-time join notification for available updates.
- Updates are NEVER downloaded or installed automatically.
- No telemetry or usage analytics are sent.
API / integrations
- Preserves the SunshineCommandGuard 1.4.0 public event API used by integrations such as Sunshine Sentinel.
CommandGuardBlockedEventremains compatible.BlockReasonremains compatible.
Platform note
- Paper and compatible Paper forks are supported.
- Folia support is not currently guaranteed.
Testing
- 166 automated tests
- 0 failures
- Java 21 clean build verified
SunshineCommandGuard v1.3.0
Highlights
- Added server-side anti-enumeration protection against client-side plugin scanners such as Meteor.
- Namespaced command labels can now be hidden and direct namespaced execution can be blocked.
- Added configurable namespace allowlist for compatibility exceptions.
- Blocked completion probes for
/plugins,/pl,/version,/ver,/about, and related namespaced aliases through both Paper completion paths. - Fixed the namespace fallback that could expose
plugin:commandlabels when the base command was allowed. - Added
/cmdguard diagnosereporting for visible namespaced commands andcommands.send-namespaced. - Added automated coverage for command-tree namespace scanning and anti-enumeration behavior.
Verification
- 117 automated tests passed.
- Clean Gradle test and build completed successfully.
- Artifact:
SunshineCommandGuard-1.3.0.jar
See CHANGELOG.md for the full change log.
SunshineCommandGuard v1.2.0
Full Changelog: v1.0.0...v1.2.0
v1.0.0 — Initial public release
Command visibility and access control for Paper servers — hide commands from tab-complete, block their execution, and keep your plugin list private, all scoped per LuckPerms group.
Features
- Tab-complete filtering via
PlayerCommandSendEvent - Execution blocking (blocked commands behave as unknown commands)
- Server privacy: hides
/plugins,/pl,/ver,/version,/about,/help - Per-group profiles resolved from LuckPerms, with
inheritandpriority - Literal,
regex:, negative!entries, andplugin:<Name>matching - Hidden aliases (runnable but not shown in tab-complete)
- Argument-level allow/deny rules
- Live verification:
/cmdguard test <player> <command> - bStats metrics included
Requirements
Paper (or a Paper fork) 1.21.x, Java 21. LuckPerms is optional.
See the README for installation and configuration.
enabled: false). Review your groups and run /cmdguard test before enabling.
SHA-256: b9246e3ae465e6082f56f2d6d131f95fd7f5a63589736fb3164fcac6a86be45a