Skip to content

Releases

SunshineCommandGuard 2.0.1

Choose a tag to compare

@lordon1a lordon1a released this 16 Oct 11:25

Privacy fix for the Live Web Editor. Upgrading is recommended for everyone who
uses /cmdguard editor.

Fixed

  • /cmdguard editor no longer uploads secrets. Your pro-key and
    monitoring.discord.webhook-url are blanked before config.yml is sent to the
    web editor. /cmdguard apply puts your local values back, so applying a web
    config never wipes them. A value you type into the web editor still wins.
  • /cmdguard editor refuses to upload a config.yml that 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

Choose a tag to compare

@lordon1a lordon1a released this 16 Oct 10:27

SunshineCommandGuard 2.0.0

Migration, integrations, a Live Web Command Editor, and execution-level argument filtering.

Upgrade notes

  • Argument rules now block execution. args rules 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 your args sections and test with /cmdguard test <player> <command> <arg> before upgrading a live server.
  • API: BlockReason has a new constant, ARGUMENT_RULE.
  • Existing config.yml files continue to work without changes.

Added

  • Live Web Command Editor (/cmdguard editor & /cmdguard apply <code>): uploads your server's registered commands and current config.yml to 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 a pro-key; manual YAML export is always free).
  • /cmdguard import commandwhitelist reads plugins/CommandWhitelist/config.yml and writes a reviewable config.imported.yml: groups, commands, and blocked sub-commands as args deny rules, plus the LuckPerms commands to grant each group. config.yml is 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 an only-reconnaissance mode 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: args deny/allow rules are enforced on execution, including namespaced forms (/minecraft:gamemode creative) and /execute ... run payloads.

SunshineCommandGuard v1.5.0

Choose a tag to compare

@lordon1a lordon1a released this 27 Sep 18:39

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 after run
    (including nested execute chains and the minecraft:/bukkit: forms) goes
    through the same group, grant, permission-sync and privacy checks as a direct
    command, so an allowed execute can 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 /plugins and /help privacy 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 reload or refresh while 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 leaving plugin: entries empty.

Upgrading

Replace the old jar with SunshineCommandGuard-1.5.0.jar and restart. No config changes are required.

SunshineCommandGuard v1.4.3

Choose a tag to compare

@lordon1a lordon1a released this 15 Sep 05:36

SunshineCommandGuard v1.4.3

What's Changed

Bugfix

  • /cmdguard grant duration tab-completion now suggests the documented preset 2h instead of 1h, 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

Choose a tag to compare

@lordon1a lordon1a released this 13 Sep 00:32

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

Choose a tag to compare

@lordon1a lordon1a released this 10 Sep 03:28

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 enabled configuration now safely defaults to disabled.

Security correctness

  • Temporary command grants now use exact canonical command tokens.
  • A grant for plugins no longer implicitly grants bukkit:plugins or minecraft: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.
  • CommandGuardBlockedEvent remains compatible.
  • BlockReason remains 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

Choose a tag to compare

@lordon1a lordon1a released this 07 Sep 20:46

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:command labels when the base command was allowed.
  • Added /cmdguard diagnose reporting for visible namespaced commands and commands.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

Choose a tag to compare

@lordon1a lordon1a released this 07 Sep 19:20

Full Changelog: v1.0.0...v1.2.0

v1.0.0 — Initial public release

Choose a tag to compare

@lordon1a lordon1a released this 07 Sep 06:49

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 inherit and priority
  • Literal, regex:, negative !entries, and plugin:<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.

⚠️ The filter ships disabled (enabled: false). Review your groups and run /cmdguard test before enabling.

SHA-256: b9246e3ae465e6082f56f2d6d131f95fd7f5a63589736fb3164fcac6a86be45a