ZPvPToggle
一款轻量级的 Minecraft 插件,允许玩家开启或关闭 PvP(玩家对战)状态。只有在双方都启用了 PvP 时,玩家才能进行 PvP 战斗。
功能特性
- 切换 PvP:玩家可以启用或禁用自己的 PvP 状态
- 视觉指示器:可自定义的粒子环显示哪些玩家已启用 PvP
- 冷却时间: 当玩家进入 PvP 战斗后,切换 PvP 状态设有可配置的冷却时间。
- 自定义指示器: 玩家可以选择自己的指示器。指示器的访问权限基于权限组。
- 管理员控制:工作人员可以切换其他玩家的 PvP 状态
- 完全可配置:所有消息和粒子效果均可配置
- 支持 Folia:兼容 Folia 服务器软件
- 基于权限:针对不同命令提供细粒度的权限系统
命令
| 命令 | 描述 | 权限 |
|---|---|---|
/pvp |
切换你的 PvP 状态 | zpvptoggle.user |
/pvp toggle |
切换你的 PvP 状态 | zpvptoggle.user |
/pvp on |
启用你的 PvP 状态 | zpvptoggle.user |
/pvp off |
禁用你的 PvP 状态 | zpvptoggle.user |
/pvp hide |
隐藏 PvP 粒子指示器 | zpvptoggle.user |
/pvp show |
显示 PvP 粒子指示器 | zpvptoggle.user |
/pvp indicator <indicator> |
更改你的 PvP 指示器 | zpvptoggle.indicator.<indicator> |
/pvp help |
显示帮助信息 | zpvptoggle.user |
/pvp reload |
重新加载插件配置 | zpvptoggle.admin |
/pvp <player> |
切换其他玩家的 PvP 状态 | zpvptoggle.admin |
/pvp bypass <player> |
切换你或其他玩家的 PvP 豁免状态 | zpvptoggle.admin |
权限
| 权限 | 描述 | 默认值 |
|---|---|---|
zpvptoggle.user |
允许玩家切换自己的 PvP 状态 | true |
zpvptoggle.indicator.<indicator> |
授予对特定指示器的访问权限。 | multiple |
zpvptoggle.admin |
允许工作人员切换其他玩家的 PvP 状态 | op |
配置
config.yml
# 是否在玩家死亡时禁用 PvP
disable-pvp-on-death: true
# 是否在玩家首次切换 PvP 时显示警告消息
warning-message-enabled: true
# 是否也将 PvP 切换保护应用于玩家的宠物
protect-pets: true
# 玩家切换 PvP 或自上次 PvP 互动以来的冷却持续时间
pvp-cooldown: 10.0
particle-indicator:
# 显示粒子环的间隔(以刻为单位)。20 刻 = 1 秒。
interval-ticks: 60
# 玩家可以看到 PvP 指示器的最大距离(以方块为单位)。
max-view-distance: 32
# 要使用的默认指示器(必须与 indicators 部分中的某个键匹配)
default-indicator: default
# 定义多个粒子环指示器
indicators:
# 默认环 - 脚边的红色圆圈
default:
type: REDSTONE
points: 32
random-particle-positions: false
radius: 0.8
y-offset: 0.1
interval: 5
random-offset-vertical: 0.0
random-offset-horizontal: 0.0
speed: 0.01
color: RED
dust-size: 1.0
兼容性
- Paper 1.21+
- 兼容 Folia
- Java 21+
依赖项
安装
ZPvPToggle
A lightweight Minecraft plugin that allows players to toggle their PvP status on and off. Players can only engage in PvP when both parties have PvP enabled.
Features
- Toggle PvP: Players can enable or disable their PvP status
- Visual Indicators: Customizable particle rings show which players have PvP enabled
- Cooldowns: Configurable cooldown for toggling PvP after a player enters PvP combat.
- Custom Indicators: Players can choose their own indicators. Access to indicators is permission-based.
- Admin Controls: Staff can toggle PvP for other players
- Fully Customizable: All messages and particle effects can be configured
- Folia Support: Works with Folia server software
- Permissions-Based: Granular permission system for different commands
Commands
| Command | Description | Permission |
|---|---|---|
/pvp |
Toggle your PvP status | zpvptoggle.user |
/pvp toggle |
Toggle your PvP status | zpvptoggle.user |
/pvp on |
Enable your PvP status | zpvptoggle.user |
/pvp off |
Disable your PvP status | zpvptoggle.user |
/pvp hide |
Hide PvP particle indicators | zpvptoggle.user |
/pvp show |
Show PvP particle indicators | zpvptoggle.user |
/pvp indicator <indicator> |
Change your PvP indicator | zpvptoggle.indicator.<indicator> |
/pvp help |
Display the help message | zpvptoggle.user |
/pvp reload |
Reload plugin configuration | zpvptoggle.admin |
/pvp <player> |
Toggle PvP for another player | zpvptoggle.admin |
/pvp bypass <player> |
Toggle PvP Bypass status for you or another player | zpvptoggle.admin |
Permissions
| Permission | Description | Default |
|---|---|---|
zpvptoggle.user |
Allows players to toggle their own PvP status | true |
zpvptoggle.indicator.<indicator> |
Give access to specific indicators. | multiple |
zpvptoggle.admin |
Allows staff to toggle PvP status for other players | op |
Configuration
config.yml
# Whether to disable PvP when a player dies
disable-pvp-on-death: true
# Whether to show a warning message when a player first toggles PvP
warning-message-enabled: true
# Whether to apply pvp-toggle protections to pets of players too
protect-pets: true
# Duration of the cooldown for players toggling pvp or since their last pvp interaction
pvp-cooldown: 10.0
particle-indicator:
# Interval in ticks to show the ring of particles. 20 ticks = 1 second.
interval-ticks: 60
# Maximum distance (in blocks) at which players can see PvP indicators.
max-view-distance: 32
# The default indicator to use (must match one of the keys in the indicators section)
default-indicator: default
# Define multiple particle ring indicators
indicators:
# Default ring - red circle around feet
default:
type: REDSTONE
points: 32
random-particle-positions: false
radius: 0.8
y-offset: 0.1
interval: 5
random-offset-vertical: 0.0
random-offset-horizontal: 0.0
speed: 0.01
color: RED
dust-size: 1.0
Compatibility
- Paper 1.21+
- Folia-compatible
- Java 21+
Dependencies
Installation
下载 ZPvPToggle
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ZPvPToggle
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ZPvPToggle
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ZPvPToggle
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ZPvPToggle
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ZPvPToggle
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ZPvPToggle
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ZPvPToggle
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 将鱼竿攻击加入由 pvp-toggle 保护的范围
- 修复了一些小问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧