▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/pvpOption
pvpOption

pvpOption

Opt-in PvP for servers. Only flagged players can fight each other. Includes warmup timer, combat cooldown, action bar HUD, auto-unflag on inactivity, broadcast messages, and full admin controls. Optional expRepair compatibility.

Оцените первым
679
0

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

BranchPlatformMC Version
multi_1.21.11Fabric + NeoForge (Architectury)1.21.11
plugin_1.21.11Spigot, Paper, Purpur, Pufferfish1.21.11
multi_26.x (upcoming)Fabric + NeoForge (Architectury)26.x
plugin_26.x (upcoming)Spigot, Paper, Purpur, Pufferfish26.x

Features

  • Opt-in PvP flagging — players choose when to engage
  • Configurable warmup period before PvP activates
  • Combat cooldown — prevents toggling off mid-fight
  • Action bar HUD showing PvP and combat status
  • Auto-unflag after configurable idle time
  • Broadcast toggle announcements to the server
  • Admin commands to force-set, lock, and unlock player flags
  • Config hot-reload without restarting the server

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).

CommandDescription
/pvpToggle your PvP flag
/pvp onEnable your PvP flag
/pvp offDisable your PvP flag
/pvp statusShow your current PvP status
/pvp listList all flagged players

Admin (pvpoption.admin permission)

CommandDescription
/pvp adminShow current config values
/pvp admin enable|disableEnable 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|offToggle flag change broadcasts
/pvp admin set <player> on|offForce-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
}
FieldDefaultDescription
pvpEnabledtrueMaster switch for the PvP system
cooldownSeconds30Seconds after combat before PvP can be disabled
warmupSeconds5Seconds before PvP activates after opting in
broadcastToggletrueAnnounce flag changes to all players
autoUnflagMinutes0Minutes of idle time before auto-disabling PvP (0 = off)

Requirements

Multi-loader: Architectury API
Paper: Paper 1.21.11+

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.21.x

Поддерживаемые окружения

Сервер

Зависимости

Ссылки

Создатели

Детали

Лицензия:
Опубликован:2 месяца назад
Обновлён:1 месяц назад
Главная