HomeJavaModspvpOption
pvpOption
ModsJava

pvpOption

by lunixialive · on Modrinth

Opt-in PvP for servers. Only flagged players can fight each other. Includes warmup timer, combat cooldown, action bar HUD, auto-unflag on inactivity…

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.2–1.21.11 · Bukkit⬇ Download for 1.21.11 · Fabric⬇ Download for 1.21.11 · NeoForge⬇ Download for 1.21.2–1.21.11 · Paper⬇ Download for 1.21.3–1.21.11 · Purpur⬇ Download for 1.21.3–1.21.11 · Spigot
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

pvpOption

A Minecraft mod/plugin that adds opt-in PvP flagging. Players must explicitly enable PvP before they can deal or receive damage from other players. Unflagged players are fully protected.


Branches

Branch Platform MC Version
multi_1.21.11 Fabric + NeoForge (Architectury) 1.21.11
plugin_1.21.11 Spigot, Paper, Purpur, Pufferfish 1.21.11
multi_26.x (upcoming) Fabric + NeoForge (Architectury) 26.x
plugin_26.x (upcoming) Spigot, Paper, Purpur, Pufferfish 26.x

Features

Note: The mod syncs the pvp= value in server.properties to match its own pvpEnabled setting on startup. The mod's config is the source of truth — editing server.properties directly has no effect.


Commands

All commands use /pvpoption (alias /pvp).

Command Description
/pvp Toggle your PvP flag
/pvp on Enable your PvP flag
/pvp off Disable your PvP flag
/pvp status Show your current PvP status
/pvp list List all flagged players

Admin (pvpoption.admin permission)

Command Description
/pvp admin Show current config values
/pvp admin enable|disable Enable or disable PvP system-wide
/pvp admin warmup <seconds> Set warmup duration (0 to disable)
/pvp admin cooldown <seconds> Set combat cooldown duration (0 to disable)
/pvp admin autounflag <minutes> Set idle auto-unflag time (0 to disable)
/pvp admin broadcast on|off Toggle flag change broadcasts
/pvp admin set <player> on|off Force-set a player's flag
/pvp admin status <player> View a player's PvP status
/pvp admin lock <player> Unflag and block a player from enabling PvP
/pvp admin unlock <player> Restore a player's ability to use PvP
/pvp admin reload [silent] Reload config from disk

Configuration

Config is written on first launch. All values can also be changed live via admin commands.

Multi-loaderconfig/pvpoption.json Paper pluginplugins/pvpOption/config.json

{
  "pvpEnabled": true,
  "cooldownSeconds": 30,
  "warmupSeconds": 5,
  "broadcastToggle": true,
  "autoUnflagMinutes": 0
}
Field Default Description
pvpEnabled true Master switch for the PvP system
cooldownSeconds 30 Seconds after combat before PvP can be disabled
warmupSeconds 5 Seconds before PvP activates after opting in
broadcastToggle true Announce flag changes to all players
autoUnflagMinutes 0 Minutes of idle time before auto-disabling PvP (0 = off)

Requirements

Multi-loader: Architectury API
Paper: Paper 1.21.11+

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.

Verified by MCModsHub

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

Explore more