
mCases
Reliable reward cases with GUI, block-orbit, and interactive chest opening modes for Paper, Purpur, and Folia.
⬇ Download on ModrinthmCases
Reliable reward cases with GUI, block-orbit, and interactive chest opening modes for Paper, Purpur, and Folia.
What it does
- Provides configurable virtual cases and per-case keys.
- Shows every configured reward and its exact base chance before opening.
- Chooses the reward on the server before animation; closing a GUI cannot reroll it.
- Atomically consumes a key, updates the pity counter and journals the reward in H2.
- Recovers undelivered rewards when a player rejoins after a crash or disconnect.
- Supports weighted rarities, configurable pity and console-command rewards.
- Exposes case definitions, chances and key balances through Bukkit Services.
Requirements
- Java 25
- Paper, Purpur or Folia 26.2
Vault, mCraft, mBadges, mColor and PlaceholderAPI are optional integration targets. The base plugin does not require them.
Install
- Put
mCases-1.0.0.jarinplugins. - Start the server once.
- Edit
plugins/mCases/cases.ymland reload with/case reload.
Reward commands use {player} and {uuid} placeholders. Define only commands that are safe to execute once. The included economy command is an example and requires a compatible economy command provider.
Commands
/case— list cases./case <id>— preview rewards, odds and open a case./case key give <player> <case> <amount>— give virtual keys./case simulate <case> <rolls>— audit the effective distribution, including pity./case reload— validate and reload configuration.
Permissions are mcases.use, mcases.simulate, mcases.reload and mcases.admin.
Reliability model
An opening is one database transaction: lock balance and pity state, select a reward, decrement the key, update pity, and insert an undelivered journal record. Commands run only after that transaction commits. The journal record is marked delivered afterwards. If the player disconnects first, the already selected reward is recovered instead of rolled again.
H2 work runs on a dedicated virtual thread and never performs database I/O on a server tick thread.
Build
./gradlew clean build
The plugin JAR is written to build/libs; API artifacts are written to api/build/libs.
Licensed under the MIT License.
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 26.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as mCases-1.0.0.jar — drop this file into the mods folder
- Download size: 71 KB
- Download link checked 4 Oct 2026 — working
These come from our own check of the pack file, not from the source page.