命令阻止及火/TNT/药水检测功能,需等待我们光荣的版主们接受 v9005 版本
最新更新:你需要一个 bannedcommands.yml 文件来防止玩家使用命令逃避 PVP
概述
是否厌倦了玩家在 PVP 期间登出以躲避死亡?我们可以检测到他们的不当行为并予以相应惩罚,从而促使人们停止这种行为。
功能特性
- PVP 登出检测,支持自定义灵敏度
- 对 PVP 登出行为的惩罚可自定义,能够执行任何服务器命令。包括封禁以及其他插件的命令。
- 可选地向在线版主发送消息,以便他们收到 PVP 登出的通知。
- 发给版主的可选消息完全可自定义,支持不同的颜色选项。请参阅下方的“带有自定义颜色和玩家名称的消息”部分
- 拥有相应权限时,可通过 /pvpwarn reload 命令在运行时重载 config.yml 文件
- 阻止玩家使用命令。注意:需要创建 bannedcommands.yml 才能使此功能生效
- 检测玩家间伤害、火焰、TNT、箭矢、附魔武器和药水
安装方法
只需将 jar 文件放入你的 plugins 文件夹并启动 Bukkit 服务器即可。首次运行时会自动生成默认配置文件。若要使其在 PVP 期间阻止玩家命令,请查看 bannedcommands.yml。你需要自行创建该文件,因为每个服务器都有可用于逃避 PVP 的不同命令。
权限设置
- pvpwarn.warnuser - 指定哪些玩家在触发 PVP 登出时应被警告的权限。默认:OP
- pvpwarn.reload - 指定哪些玩家可以使用 /pvpwarn reload 的权限。默认:OP
命令
- /pvpwarn reload - 用于重载 config.yml 文件。需要 "pvpwarn.reload" 权限才能执行此操作。
配置说明
关于如何阻止命令,请参阅 bannedcommands.yml
- letOPpvplog - 这是一个 true/false 值,用于确定是否允许 OP 在不受惩罚的情况下进行 PVP 登出。如果设置为 false,则每当 OP 触发 PVP 登出时,他将被视为普通玩家处理,并且版主会收到警告,同时执行相应命令。注意:某些命令(如 Essentials 中的 /tempban)无法对 OP 玩家生效。默认:false
- timeamount - 用于检查玩家在受到其他玩家攻击后多久才会触发 PVP 登出。单位为秒。默认:3
- healthamount - 用于检查玩家必须拥有的血量阈值,低于该值才会触发事件。如果玩家拥有等于或多于该值的血量,当他们离开时不被视为 PVP 登出。单位为半颗心。默认:6
- tellmods - 这是一个 true/false 值,用于确定是否向拥有 "antipvplogger.warnuser" 权限的人发送有人进行 PVP 登出的通知。默认:true
- modwarn - 这是一个字符串,用于控制当玩家进行 PVP 登出时版主收到的警告内容。
- command - 这是当玩家进行 PVP 登出时将调用的命令。它可以是任何可从服务器控制台执行的命令。你可以使用 &&p 来替换命令中触发 PVP 登出的玩家名称。不要在开头加斜杠。默认:无。
带有自定义颜色和玩家名称的消息
警告字符串中可以包含颜色以及玩家名称。为此,请在配置文件的警告消息中包含以下代码。
- &0 - 使后续文本变为黑色
- &1 - 使后续文本变为深蓝色
- &2 - 使后续文本变为深绿色
- &3 - 使后续文本变为深青色
- &4 - 使后续文本变为深红色
- &5 - 使后续文本变为深紫色
- &6 - 使后续文本变为金色
- &7 - 使后续文本变为灰色
- &8 - 使后续文本变为深灰色
- &9 - 使后续文本变为蓝色
- &a - 使后续文本变为绿色
- &b - 使后续文本变为青色
- &c - 使后续文本变为红色
- &d - 使后续文本变为淡紫色
- &e - 使后续文本变为黄色
- &f - 使后续文本变为白色
- &&p - 将 '&&p' 替换为进行 PVP 登出的玩家名称。你也可以将其用于 Command 配置项
建议用法
它也可以与其他任何插件配合使用,因此你可以配置它在玩家进行 PVP 登出时扣除其 iConomy 金钱、代币或其他物品作为惩罚。你甚至可以将其与一个插件结合,让玩家死亡并掉落所有物品,这样他们重新登录时会处于死亡状态并需要重生。可能性是无限的。
或者,你也可以仅保留向版主发送警告的功能,让他们根据具体情况自行决定如何处理!
即将推出的功能
长期追踪某人进行 PVP 登出的频率。为此我将:
添加一个 /pvpwarn [playername] 命令,显示某玩家进行过多少次 PVP 登出(以及具体时间)。
Command prevention and fire/tnt/potion detection is pending acceptance of v9005 by Our Glorious Moderators
LATEST RELEASE: YOU WILL NEED A bannedcommands.yml FILE TO KEEP PLAYERS FROM USING COMMANDS TO ESCAPE PVP
Overview
Sick of people logging out during PVP to prevent death? We can detect their misbehavior and punish them accordingly, motivating people to stop this behavior.
Features
- PVP logging detection, with customizable sensitivity
- Punishment for PVP logging is customizable, with the ability to do any server command. This includes banning, as well as other commands from other plugins.
- Optional messages to moderators that are logged in, so they can be notified of PVP logging.
- The optional messages to moderators are completely customizable, with different color options as well. See the section below on "Messages With Custom Colors and Player Names"
- Able to reload the config.yml file while running with the /pvpwarn reload command and the right permission
- Stops players from using commands. Note: a bannedcommands.yml needs to be created for this feature to work
- Detects player to player damage, fire, TNT, arrows, enchanted weapons, and potions
Installation
Simply place the jar file into your plugins folder and start your Bukkit server. A default configuration file will be generated the first time it is run. To have it stop player commands while in PVP, look at the bannedcommands.yml. You will need to make your own since every server has different commands that could be used to escape PVP
Permissions
- pvpwarn.warnuser - Permission for which players to warn when a player has PVP logged. Default: OP
- pvpwarn.reload - Permission for which players can use /pvpwarn reload. Default: OP
Commands
- /pvpwarn reload - used to reload the config.yml file. Need "pvpwarn.reload" permission to do this.
Configuration
PLEASE SEE bannedcommands.yml FOR HOW TO HAVE IT STOP COMMANDS
- letOPpvplog - This is true/false on whether we are to allow OPs to PVP log with impunity. If this is false, then whenever an OP triggers PVP logging, he is treated like a normal player, and mods are warned of it as well as the command is executed. NOTE: SOME COMMANDS LIKE /tempban FROM ESSENTIALS DO NOT WORK ON OP'd PLAYERS. Default: false
- timeamount - This is to check for how long ago a player has been hit by another player before triggering a PVP logging. Value is in seconds. Default: 3
- healthamount - This is to check for how much health a player must have in order to NOT trigger an event. If a player has this much health or more health than this value, they are NOT considered to be PVP logging if they leave. Value is in HALF hearts. Default: 6
- tellmods - This is true/false on whether to tell people with "antipvplogger.warnuser" permission whenever someone does PVP logging. Default: true
- modwarn - This is a string that tells governs what warnings moderators get whenever a player PVP logs.
- command - This is the command that will be called when player PVP logs. It can be any command executable from the server console. You can use &&p to substitute the name of whatever player PVP logged in as part of the command. Do not put a slash at the beginning. Default: none.
Messages With Custom Colors and Player Names
The warning strings can have colors in them, as well as the player name. To do so, include the following codes into your warning message in the configuration file.
- &0 - makes text after it black
- &1 - makes text after it dark blue
- &2 - makes text after it dark green
- &3 - makes text after it dark aqua
- &4 - makes text after it dark red
- &5 - makes text after it dark purple
- &6 - makes text after it gold
- &7 - makes text after it gray
- &8 - makes text after it dark gray
- &9 - makes text after it blue
- &a - makes text after it green
- &b - makes text after it aqua
- &c - makes text after it red
- &d - makes text after it light purple
- &e - makes text after it yellow
- &f - makes text after it white
- &&p - replaces the '&&p' with the player name of whomever PVP logged. You can also use this for the Command
Suggested Use
It works with any other plugin as well, so you could configure it to subtract from their iConomy money, tokens, or other things as punishment. You could even combine this with a plugin to kill the player and drop all their inventory, so they'll log back on dead and needing to respawn. The possibilities are endless.
Or you could just leave it at warning moderators, letting them to do as they please on a case by case basis!
Upcoming Features
Tracking how often someone PVP logs, long term. With that I'll be:
Adding a /pvpwarn [playername] command that tells how many times a player has pvplogged (and when).
评论 0
登录后参与评分
还没有评论,来抢沙发吧