PvPToggle

PvPToggle - 玩家PVP开关

允许玩家更改他们的 PvP 状态,以表明他们是否想与其他玩家战斗。
Bukkit / Spigot 作者 Majekdor 支持版本 1.13 - 1.18
服务器使用量
24
服务玩家数
40
下载量
4,213
插件详细介绍

PvPToggle 是一款让玩家通过简单命令 /pvp 切换自身 PvP 状态的插件。关闭 PvP 后,玩家将无法对其他玩家造成伤害,也不会受到其他玩家的伤害;但来自怪物、爆炸、岩浆等环境或生物的伤害不受影响。

插件简介

PvPToggle 允许玩家自由开启或关闭自己的玩家对战状态。

  • 使用 /pvp 即可切换自己的 “PvP status”
  • 当 PvP 关闭时:
  • 不能受到其他玩家造成的伤害
  • 不能对其他玩家造成伤害
  • 不影响来自怪物、爆炸、岩浆等来源的伤害

功能特色

  • 轻量、小巧、高效
  • 阻止所有形式的玩家伤害
  • 支持自定义消息
  • 支持 WorldGuard
  • 支持 Citizens
  • 支持 GriefPrevention
  • 支持 Lands
  • 提供管理员命令
  • 适用于大多数 MC 版本
  • 重启后数据会保存

命令

  • /pvp <on|off>
  • 更改自己的 PvP 状态
  • /allpvp <on|off>
  • 更改所有人的 PvP 状态
  • 需要权限 pvptoggle.allpvp
  • /blockpvp <true|false>
  • 设置是否阻止玩家切换自己的 PvP 状态
  • 需要权限 pvptoggle.blockpvp

使用方法

  • 将下载的 jar 文件放入服务器的 plugins 文件夹
  • 重启服务器
  • 插件会自动生成 config.yml
  • 之后你就可以按照自己的需求配置插件

默认 config.yml

# PvPToggle by Majekdor | Need help? Join https://discord.majek.dev 

# Set whether pvp is on by default (default: false) 
default-pvp: false

# Set whether pvp is automatically set to false on join 
off-on-join: false

# If true, only players with permission pvptoggle.use can use /pvp (default: false) 
use-permissions: false

# Set a cooldown for the time between players using /pvp 
# Default: -1 (no cooldown) put number in seconds if you change this 
pvp-cooldown: -1

# Set the worlds where PvP Toggle is disabled 
# Below is an example. Uncomment the line and add the world name to disable 
disabled-worlds:
  - "world name goes here"

# If set to true then PvP will be forced on for users in a WorldGuard region where PvP is set to allow 
# Otherwise PvPToggle will let them do what they want 
force-pvp-in-region-allow: false

# Whether players should be notified of a region's pvp status (whether they can pvp there) when they enter 
region-notify: true

# Set whether changes in PvP status are logged to console (default: false) 
console-log: false

# Don't set to true unless you want players to see random messages or other undesirable behavior 
debug: false

# These are used for PAPI boolean values 
boolean-true: 'true'
boolean-false: 'false'

# Database settings for MySQL support 
# Only enable this if you know what you're doing and have an existing database 
# If database is disabled the plugin will use SQLite for data storage 
database-enabled: false
host: ''
port: ''
database: ''
username: ''
password: ''
use-ssl: false

# ========================= 
# | MESSAGE CONFIGURATION | 
# ========================= 
# Feel free to use any mc color code 
# %player% is replaced with the relevant player name 
# If %player% isn't in a message, don't put it there. It won't work 
pvp-enabled: '&6PvP is now: &aEnabled'
pvp-disabled: '&6PvP is now: &cDisabled'
no-pvp: '&6PvP is disabled. Use &7/pvp &6to turn it on.'
other-pvp: '&b%player% &6has PvP disabled!'
unknown-player: '&cUnable to locate player %player%.'
no-permission: '&cYou do not have permission to do that!'
on-cooldown: '&cYou may use this command again in %cooldown%.'
plugin-reloaded: '&6PvPToggle reloaded.'

# The below messages use the strings at the bottom of this file 
# %toggle% will be replaced with either on or off 
# %player% will be replaced with the player who's pvp has been toggled 
pvp-toggle-other: '&6PvP is now %toggle% for &b%player%&6.'
pvp-toggle-all: '&6PvP is now %toggle% for everyone.'
pvp-block-set: '&6Global PvP blocking is now set to %toggle%.'
pvp-blocked: '&6Toggling PvP is blocked.'

# %noun% will be replaced with either you-are or player-is 
disabled-world: '&c%noun% in a world where this command is disabled.'

# %toggle% is either on or off 
region-deny: '&c%noun% in a region with PvP forced %toggle%.'

# %toggle% is either on or off 
region-enter: '&cYou have entered a region where PvP is forced %toggle%.'

# %toggle% is either on or off 
your-pvp: '&6Your PvP is currently %toggle%. Use /pvp <on|off> to change it.'

# Strings for placeholders in above messages 
forced-on: 'on'
forced-off: 'off'
you-are: 'You are'
player-is: '%player% is'

说明

  • 支持使用 mc 颜色代码自定义消息
  • %player% 会被替换为对应玩家名称
  • 如果某条消息本身没有 %player%,请不要手动加入,否则不会生效
  • 如果启用数据库功能,需要你已经正确配置并拥有可用的 MySQL 数据库
  • 如果未启用数据库,插件将使用 SQLite 存储数据
  • debug 不建议开启,除非你明确知道自己在做什么

需要帮助或有建议?

有时候插件难免会出现 bug,作者也一直在寻找改进插件的建议。最推荐的联系方式是 Discord:

  • 支持服务器:https://discord.majek.dev
  • 也可以通过 discord、spigot 或讨论页联系作者
  • 作者会尽快回复

问题反馈说明

  • 请不要在评价区发布 bug 报告或问题
  • 报告错误的最佳方式是使用上方提供的 Discord 链接
测试支持版本
1.13 1.14 1.15 1.16 1.17 1.18
版本分布
基本信息
插件名称 PvPToggle
作者 Majekdor
平台 Bukkit / Spigot
支持版本 1.13 - 1.18
点赞数 未统计
Modrinth 下载 4,521
最近版本
3.0.3 18
3.0.2 2
2.0.5 1
1.0-SNAPSHOT 1

友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作

历史访问人数:2,588,257  |  历史访问人次:3,139,635

今日访问人数:8,741  |  今日访问人次:9,256

昨日访问人数:24,332  |  昨日访问人次:29,698

Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.

Powered by GermMC 京ICP备17023959号-6