How plazmamc/plazmabukkit works
Purpose and Deliverable
Plazma is a JVM Minecraft server distribution derived from Paper and Purpur, focused on performance, stability, configurable behavior, and plugin compatibility. Its deliverable is a patched server/API build rather than a standalone web service. Gradle is the primary build entry point: build.gradle.kts, settings.gradle.kts, and gradlew.
Upstream Patch Pipeline
The repository’s central architecture is layered customization of upstream Minecraft, Paper, and Purpur sources. Ordered patch series encode most product behavior:
• Minecraft/runtime changes: plazma-server/minecraft-patches/features
• Paper server changes: plazma-server/paper-patches/features
• Purpur additions: plazma-server/purpur-patches/features
• API-level Paper changes: plazma-api/paper-patches/features
Scripts support updating and applying this upstream-derived source state: scripts/updateUpstream.sh, scripts/apatch.sh, build-data/dev-imports.txt.
Server Runtime Extensions
The server module supplies Plazma-owned code injected into the patched server runtime. Branding and command-line/runtime options are defined in plazma-server/src/main/java/org/plazmamc/plazma/ServerBrandConstants.java and plazma-server/src/main/java/org/plazmamc/plazma/Options.java. Server commands are routed through plazma-server/src/main/java/org/plazmamc/plazma/command/PlazmaCommands.java, including reload and version subcommands.
Configuration Boundary
Plazma centralizes global and per-world configuration separate from upstream patch logic:
• plazma-server/src/main/java/org/plazmamc/plazma/configuration/PlazmaConfigurations.java
• plazma-server/src/main/java/org/plazmamc/plazma/configuration/GlobalConfiguration.java
• plazma-server/src/main/java/org/plazmamc/plazma/configuration/WorldConfiguration.java
Configuration is loaded into server behavior and is exposed operationally through the reload command. Patches explicitly rewrite Paper configuration and establish Plazma-specific settings, making configuration compatibility a key boundary with upstream.
Performance and Concurrency
Performance work is split between broad patch-based changes and local runtime utilities. The patch series includes async mob spawning, chunk/entity ticking reductions, allocation reductions, activation controls, and profiling removal under plazma-server/minecraft-patches/features. Local coordination utilities include plazma-server/src/main/java/org/plazmamc/plazma/util/AsyncExecutor.java and plazma-server/src/main/java/org/plazmamc/plazma/util/TickingController.java; these are sensitive concurrency boundaries because they affect the Minecraft tick lifecycle.
API and SIMD Capability
The API module adds SIMD-aware map-palette conversion. Capability detection and fallback selection live in:
• plazma-api/src/main/java/org/plazmamc/plazma/simd/SIMDChecker.java
• plazma-api/src/main/java/org/plazmamc/plazma/simd/SIMDDetection.java
• plazma-api/src/main/java/org/plazmamc/plazma/simd/VectorMapPalette.java
This isolates hardware/vector-runtime detection from server gameplay code while allowing optimized rendering paths when supported.
Validation and Delivery Infrastructure
test-plugin is a Paper-plugin integration fixture, with lifecycle/bootstrap entry points in test-plugin/src/main/java/org/plazmamc/testplugin/TestPlugin.java and descriptor test-plugin/src/main/resources/paper-plugin.yml. CI runs through GitHub Actions (.github/workflows/gradle.yml) and Jenkins (Jenkinsfile). External project-facing services referenced by the README include Plazma’s API/CDN endpoints, documentation, Discord, and bStats; they are not represented as runtime source integrations in this tree.
Main entry points: updateUpstream.sh Upstream update scripts · build.gradle.kts Gradle build · minecraft-patches/features Minecraft feature patches · paper-patches/features Paper server patches
Components 17
Build & patch pipeline
Gradle assembles the patched distribution from ordered upstream patch series.
- Gradle build
build.gradle.kts - Upstream update scripts · Updates and applies upstream-derived source state.
scripts/updateUpstream.sh - Development imports
build-data/dev-imports.txt - Minecraft feature patches · Includes core runtime performance and concurrency changes.
plazma-server/minecraft-patches/features - Paper server patches
plazma-server/paper-patches/features - Purpur additions
plazma-server/purpur-patches/features - Paper API patches
plazma-api/paper-patches/features - Patched server distribution · Plugin-compatible Minecraft server/API deliverable.
Server runtime
Plazma-owned runtime code extends the patched Minecraft server.
- Branding & options · Defines Plazma identity and command-line options.
plazma-server/src/main/java/org/plazmamc/plazma/Options.java - Server commands · Routes Plazma reload and version commands.
plazma-server/src/main/java/org/plazmamc/plazma/command/PlazmaCommands.java - Configuration boundary · Loads Plazma settings separately from upstream patch logic.
plazma-server/src/main/java/org/plazmamc/plazma/configuration/PlazmaConfigurations.java - Tick coordination · Async execution and tick control affect the Minecraft tick lifecycle.
plazma-server/src/main/java/org/plazmamc/plazma/util/TickingController.java
API capability
API-level extensions isolate SIMD selection from gameplay code.
- SIMD capability detection · Selects vector or fallback map-palette processing.
plazma-api/src/main/java/org/plazmamc/plazma/simd/SIMDDetection.java - Vector map palette
plazma-api/src/main/java/org/plazmamc/plazma/simd/VectorMapPalette.java
Validation & delivery
Integration fixture and CI validate distributable server builds.
- Test plugin fixture · Exercises server plugin lifecycle integration.
test-plugin/src/main/java/org/plazmamc/testplugin/TestPlugin.java - GitHub Actions
.github/workflows/gradle.yml - Jenkins
Jenkinsfile
Connections 19
- Upstream update scripts → Development imports: uses
- Upstream update scripts → Minecraft feature patches: updates/applies
- Upstream update scripts → Paper server patches: updates/applies
- Upstream update scripts → Purpur additions: updates/applies
- Upstream update scripts → Paper API patches: updates/applies
- Gradle build → Patched server distribution: builds
- Minecraft feature patches → Patched server distribution: customizes
- Paper server patches → Patched server distribution: customizes
- Purpur additions → Patched server distribution: adds
- Paper API patches → Patched server distribution: extends API
- Branding & options → Patched server distribution: runs in
- Server commands → Configuration boundary: reloads
- Configuration boundary → Patched server distribution: configures behavior
- Tick coordination → Patched server distribution: coordinates ticks
- SIMD capability detection → Vector map palette: selects path
- Vector map palette → Patched server distribution: extends API
- Test plugin fixture → Patched server distribution: integration-tests
- GitHub Actions → Gradle build: runs
- Jenkins → Gradle build: runs