Home›Java›Mods›mBans
mBans
ModsJava

mBans

Java mod listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.

by miklires · on Modrinth

⬇ Download on Modrinth

mBans

Flexible moderation and punishment management for Paper, Purpur, Folia, and Velocity networks.

Paper Purpur Velocity

GitHub Modrinth Discord

bStats Release Java 25 Minecraft 26.2

The backend plugin supports Paper, Purpur, and Folia 26.2. The proxy module blocks banned accounts before they enter a Velocity network.

What it does

Requirements

No external database is required for one backend. A network installation must use one shared MySQL, MariaDB, or PostgreSQL database. Do not share an H2 or SQLite file between processes.

Install on one server

  1. Put mBans-1.2.0.jar in the server plugins directory.
  2. Start the server once.
  3. Edit plugins/mBans/config.yml and restart when changing storage or network settings.

H2 is selected by default. Player messages are loaded from lang/en_US.yml; set language.default: ru_RU to use the bundled Russian file.

Install on a Velocity network

  1. Create one MySQL, MariaDB, or PostgreSQL database.
  2. Install mBans-1.2.0.jar on every backend.
  3. Configure the same database on every backend and give each one a different network.server-name.
  4. Install mBans-Velocity-1.2.0.jar in the Velocity plugins directory.
  5. Start Velocity once and configure plugins/mbans-velocity/config.properties with the same JDBC connection.
  6. Restart the proxy and all backends.

The Velocity module reads the shared punishment tables directly. Install and initialize a backend first so that the schema exists. See the network guide for complete examples.

Configuration

The main sections are:

Missing defaults are added without replacing existing values. /mbans reload reloads messages and safe settings; storage, network, REST, and GeoIP changes require a restart. See configuration.

Commands

Command Purpose
/ban <player> [duration] [reason] Ban a player permanently or temporarily
/tempban <player> <duration> [reason] Require a temporary ban duration
/unban <player> [reason] Remove an active ban
/banip <player|ip> [duration] [reason] Ban an IP address
/unbanip <player|ip> Remove an IP ban
/mute, /tempmute, /unmute Manage chat mutes
/ipmute <player|ip> [duration] [reason] Mute accounts using an IP address
/unipmute <player|ip> Remove an IP mute
/shadowmute <player> [duration] [reason] Isolate chat without notifying the target
/tempshadowmute <player> <duration> [reason] Require a temporary shadow-mute duration
/unshadowmute <player> Remove a shadow mute
/appeal <appeal-id> <message> Submit an appeal tied to your own punishment
/warn <player> [reason] Add a warning and evaluate escalation rules
/unwarn <player> <id|all> Remove one or all active warnings
/kick <player> [reason] Remove an online player
/history <player> [page] View player punishment history
/staffhistory <staff> [page] View actions issued by a moderator
/check <player> Show active ban, mute, and warning state
/banlist [page] List active bans
/mutelist [page] List active mutes
/warns <player> List active warnings
/punishment <id> Inspect a punishment and its appeal ID
/alts <player> Find accounts with the same recorded IP; alias /dupeip
/muser <player> Open the moderation GUI, including offline records
/mbans rollback <staff> [time] Revoke recent punishments from one moderator
/mbans revoke <id> [reason] Revoke an active punishment by ID
/mbans reason <id> <reason> Correct a stored punishment reason
/mbans allow <player> [ip-ban-id] Exempt one UUID from its active IP ban
/mbans note <player> <text> Add a private staff note
/mbans notes <player> Read recent staff notes
/mbans stats <staff> Show staff action counts
/mbans appeals [page] List open in-game appeals
/mbans appeal <id> <accept|deny> [note] Review an appeal; accepting revokes an active punishment
/mbans import ... Preview or import legacy data
/mbans export <player> [json|csv] Export a player's history
/mbans reload Reload safe configuration and language values

Durations accept combined units such as 30m, 2h, 7d, and 1mo. Ban, mute, warning, and IP-ban commands accept -s and --evidence=<url>. Ban, mute, and warning commands also accept -last <count> to attach recent chat lines. A template name can replace the reason, for example /ban Steve cheat.

Every administrative command has a matching mbans.command.<name> permission. mbans.admin grants the complete command set. Sensitive IP output requires mbans.view.ip; alt notifications require mbans.notify.alts; staff allowed to observe shadow-muted chat need mbans.notify.shadow. Target exemptions use mbans.bypass.ban, mbans.bypass.mute, mbans.bypass.warn, and mbans.bypass.kick. Replacing an existing ban or mute requires mbans.override; shortening it additionally requires mbans.override.shorten. The -s flag requires mbans.silent.

PlaceholderAPI

When PlaceholderAPI is installed, mBans registers %mbans_banned%, %mbans_muted%, %mbans_warnings%, %mbans_status%, and %mbans_version%. Punishment state is loaded asynchronously and cached for five seconds. The first unresolved request returns an empty value instead of blocking the server thread.

Migration

Always back up the source and destination before importing. Start with --dry-run:

/mbans import vanilla . --dry-run
/mbans import litebans --dry-run

The vanilla profile reads banned-players.json and banned-ips.json. JDBC URLs and credentials are read from imports.<profile> so passwords do not enter command history. JDBC profiles inspect source table metadata and recognize common punishment field names. Review the counts before running the same command without --dry-run. Details and limitations are in the migration guide.

Artifacts

Telemetry and updates

mBans uses bStats plugin ID 33351 for anonymous usage statistics. Disable collection with metrics.enabled: false. The update checker reads the public Modrinth project and can be disabled independently with updates.enabled: false.

Build

./gradlew clean build :velocity:build

The project is licensed under the MIT License.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more