PvPToggle
适用于 Paper 服务器的轻量级全局 PvP 管理插件。
PvPToggle 允许服务器管理员通过简单的命令,轻松启用或禁用配置世界中所有玩家的 PvP。
该插件提供可配置的世界支持、自定义标题通知以及持久的 PvP 状态存储。
✨ 功能
- 全局 PvP 控制 – 为所有玩家启用或禁用 PvP。
- 基于世界的配置 – 选择由插件管理的特定世界。
- 持久化状态 – PvP 状态会在服务器重启后保存并恢复。
- 标题通知 – 每当切换 PvP 状态时,玩家会收到标题通知。
- 投射物保护 – 阻止来自箭矢、三叉戟和其他投射物的玩家间伤害。
- 近战保护 – 在 PvP 禁用期间,防止玩家互相攻击。
- 无管理员绕过 – PvP 限制适用于所有人,包括操作员(OP)。
- 可自定义消息 – 可在配置文件中更改标题、副标题和显示时长。
? 命令
| 命令 |
描述 |
/pvp |
显示当前 PvP 状态。 |
/pvp on |
在所有已配置的世界中启用 PvP。 |
/pvp off |
在所有已配置的世界中禁用 PvP。 |
/pvp status |
显示当前 PvP 状态及管理的世界列表。 |
? 权限
| 权限 |
描述 |
默认值 |
pvtoggle.admin |
允许使用所有 PvPToggle 命令。 |
OP |
没有用于绕过的权限。PvP 限制适用于所有玩家,包括服务器管理员和操作员。
⚙️ 配置
示例 config.yml:
settings:
default-pvp: true
save-status: true
worlds:
- HeartSMP
- PvP_event
messages:
prefix: "&8[&dPvPToggle&8]"
enabled:
title: "&a&lPvP ENABLED"
subtitle: "&7PvP is now enabled for everyone!"
disabled:
title: "&c&lPvP DISABLED"
subtitle: "&7PvP is now disabled for everyone!"
title-settings:
fade-in: 10
stay: 40
fade-out: 10
? 数据存储
当前的 PvP 状态存储在以下位置:
plugins/PvPToggle/data.yml
当启用 save-status 时,上次激活的 PvP 状态将在服务器重启后自动恢复。
? 安装
- 下载最新的 PvPToggle 版本。
- 将
.jar 文件放入服务器的 plugins 文件夹中。
- 重启服务器。
- 配置
plugins/PvPToggle/config.yml。
- 再次重启服务器以应用配置更改。
?️ 兼容性
- Minecraft: 1.21.11
- 服务端软件: Paper
- Java: 21
- 插件版本: 1.0.0
ℹ️ 重要说明
- PvPToggle 仅管理配置文件中列出的世界。
- 未在配置文件中列出的世界保持其正常的 Minecraft PvP 行为。
- 环境伤害、生物伤害及其他非玩家伤害来源不受影响。
- 配置更改目前需要重启服务器才能生效。
轻量级。简单。完全掌控你服务器的 PvP。
PvPToggle
Simple and lightweight global PvP management for Paper servers.
PvPToggle allows server administrators to easily enable or disable PvP for all players in configured worlds using simple commands.
The plugin provides configurable world support, customizable title notifications and persistent PvP status storage.
✨ Features
- Global PvP Control – Enable or disable PvP for all players.
- World-Based Configuration – Choose exactly which worlds are managed by the plugin.
- Persistent Status – PvP status is saved and restored after server restarts.
- Title Notifications – Players receive a title notification whenever PvP is toggled.
- Projectile Protection – Blocks player-to-player damage from arrows, tridents and other projectiles.
- Melee Protection – Prevents players from attacking each other while PvP is disabled.
- No Admin Bypass – PvP restrictions apply to everyone, including operators.
- Customizable Messages – Change titles, subtitles and display durations in the configuration.
? Commands
| Command |
Description |
/pvp |
Displays the current PvP status. |
/pvp on |
Enables PvP in all configured worlds. |
/pvp off |
Disables PvP in all configured worlds. |
/pvp status |
Displays the current PvP status and managed worlds. |
? Permissions
| Permission |
Description |
Default |
pvtoggle.admin |
Allows access to all PvPToggle commands. |
OP |
There is no bypass permission. PvP restrictions apply to all players, including server administrators and operators.
⚙️ Configuration
Example config.yml:
settings:
default-pvp: true
save-status: true
worlds:
- HeartSMP
- PvP_event
messages:
prefix: "&8[&dPvPToggle&8]"
enabled:
title: "&a&lPvP ENABLED"
subtitle: "&7PvP is now enabled for everyone!"
disabled:
title: "&c&lPvP DISABLED"
subtitle: "&7PvP is now disabled for everyone!"
title-settings:
fade-in: 10
stay: 40
fade-out: 10
? Data Storage
The current PvP status is stored in:
plugins/PvPToggle/data.yml
When save-status is enabled, the last active PvP status is automatically restored after a server restart.
? Installation
- Download the latest PvPToggle release.
- Place the
.jar file into your server's plugins folder.
- Restart your server.
- Configure
plugins/PvPToggle/config.yml.
- Restart your server to apply configuration changes.
?️ Compatibility
- Minecraft: 1.21.11
- Server Software: Paper
- Java: 21
- Plugin Version: 1.0.0
ℹ️ Important Notes
- PvPToggle only manages worlds listed in the configuration.
- Worlds not listed in the configuration retain their normal Minecraft PvP behavior.
- Environmental damage, mob damage and other non-player damage sources are unaffected.
- Configuration changes currently require a server restart.
Lightweight. Simple. Full control over your server's PvP.
评论 0
登录后参与评分
还没有评论,来抢沙发吧