Skip to content

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
· 2 commits to master since this release

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.