Repository navigation
Releases
Releases · Caloptreyx/MC-Startup-Flags
v0.1.0
MC Startup Flags 0.1.0
First release of the Minecraft JVM Startup Flag Editor extension for Calagopus Panel (>=1.2.10).
Added
- Startup Flag Editor Card & Dedicated Page: Clickable Startup Flag Editor card on the server Startup page linking to
/startup-flags, plus an eligibility-filtered sidebar tab (for configured eggs or auto-detected Java/Minecraft servers). - Curated Presets: Built-in presets for Vanilla/Default, Aikar's Flags (automatic
<12 GB/>=12 GBsizing), Generational ZGC (Java 21+, auto-omitting-XX:+ZGenerationalon Java 24+), Shenandoah GC, Modded G1GC, Proxy (Velocity / Waterfall / BungeeCord), and Paper / Pufferfish SIMD — with Java version compatibility detection from the server's Docker image. - Custom Memory Controls: Automatic (
MaxRAMPercentage), Custom (-Xms/-Xmxwith container RAM headroom protection), and Template ({{SERVER_MEMORY}}) modes. - Interactive Flag Builder & Security Sanitizer: Visual GC, heap, and JVM runtime flag toggles plus custom JVM flags with strict backend/frontend validation (blocking shell metacharacters, invalid prefixes, hardcoded dangerous JVM options, and admin-configured extra blocked prefixes) — works safely even when arbitrary custom startup commands are disabled on the egg.
- Safe Command Preservation: Parses and rewrites only the JVM flags section while preserving the Java binary, leading env vars,
-jartarget, and Forge/NeoForge@libraries/.../unix_args.txtargfiles, with one-click reset to egg default. - Saved Custom Presets & Import/Export: Account-scoped PostgreSQL presets (
dev_caloptreyx_startupflags_presets) reusable across all servers, plus export/import viamcflags:v1:share codes, JSON, or rawjava ...commands. - Permissions & Admin Settings:
startup-flags.{read,update,presets}server permissions and admin settings for egg filtering, custom flags/memory toggles, RAM overhead,MaxRAMPercentageceiling, preset limits, and extra blocked flag prefixes.