简介
我制作了这个插件来创建一个警告系统。你可以对玩家发出警告,当警告次数达到上限时,再次对其警告将导致其被封禁或执行你设定的其他自定义命令。
工作原理
你将拥有一个配置文件,其中保存玩家的警告记录,并设置封禁(或其他操作)前的最大警告次数。
如果你警告玩家的次数达到了配置的上限,下一次警告时将触发封禁(或其他操作)。
如果玩家破坏/辱骂/有其他违规行为,你可以对其进行警告;在达到最大警告次数后,下一次的警告将变为封禁或你配置的其他操作(仅 v3.0 及以上版本支持)。
命令
- /warn - 用于警告玩家 # 在 v3.0 版本中,/wr 是 /warn 的别名
- /warning [remove/see] [Player/all] - 用于查看所有玩家的警告或移除某一名玩家的警告 # 在 v3.0 版本中,/wrg 是 /warning 的别名 # 仅在 v4.0 及更高版本中可以使用 'all'
权限
- warningsystem.warn - /warn 命令的权限
- warningsystem.warning - /warning 命令的权限
配置
#最大警告次数
maxwarns: 3
#当玩家被封禁时显示的此消息
#留空则不显示任何内容
buymessage: 请在 购买解封服务
#V2.0 及以上版本支持的自定义消息
playerwarned: 玩家已成功被警告
recivedwarning: 你收到了一条警告
#'%a' 仅在 V3.0 及以上版本可用
#%a 将被替换为 customactiontext 的内容
warnfailuserbanned: 该玩家已被 %a
palyernotfound: 未找到该玩家
removedwarn: 移除了该玩家的一条警告
removedwarnuser: 管理员移除了你的一条警告
negativewarning: 无法设置负数警告次数
#V3.0 及以上版本专属的自定义操作
#是否要使用自定义操作?如果不启用,系统将默认封禁玩家
customaction: false
#自定义操作的命令。%p 用于获取玩家名称
customcommand: deop %p
#将在 "youwaswarned" 消息中补充的文本(将替换 "%a")
customactiontext: 被解除管理员身份
#如果你不想使用自定义操作,只需删除 '%a' 并改为写入 banned 即可
youwaswarned: 你已被警告 %w 次。你已被 %a。
#以下是玩家的警告记录
#仅在你警告他人时才会生成
#所有名称都将转换为小写
warnings:
adriano3ds: 0
whatever: 2
仅适用于 V2.0 及以上版本
葡萄牙语消息:
附加功能
你可以将此插件与我的另一个插件 Admin Way 配合使用
请参阅“Admin Mode”章节中的“EXTRA”部分以了解其工作原理。
结语
感谢你使用本插件
Introduction
I made this plugin to create a warning system, you warn a player sometimes and if it reach the max warns when you warn him again he will be banned or something that you want(Custom command)
How it works
You will have a configuration file where will be save the players warnings and where will you set the max warnigs until ban(or whatever else) him.
If you warn a player how many times you configured, in the next warn he will be banned(or whatever else).
If a player grief/swear/another cause you can warn him, and after the max warns the next warn will be a BAN or another thing that you configured(v3.0 up only)
Command
- /warn - Used to warn a player # In version 3.0 /wr is an aliase to /warn
- /warning [remove/see] [Player/all] - Used to see all player warning or to remove 1 player warning # In version 3.0 /wrg is an aliase to /warning # You can use 'all' in version 4.0 only
Permissions
- warningsystem.warn - permission to /warn command
- warningsystem.warning - permission to /warning command
Configuration
#Number of max warnings
maxwarns: 3
#This message will show when player banned
#Let it ' ' to nothing show
buymessage: Buy disban in
#CUSTOM MESSAGES IN V2.0 OR ONLY
playerwarned: Player warned with success
recivedwarning: You receivied a warning
#'%a' ONLY IN V3.0 OR UP
#%a will be replaced for customactiontext
warnfailuserbanned: This player has been %a
palyernotfound: Player not found
removedwarn: Remove 1 warn of this player
removedwarnuser: Admin remove 1 of yours warnings
negativewarning: Can not set negative warnings
#CUSTOM ACTIONS IN V3.0 OR UP ONLY
#Do you want a custom action? If not it will ban the player
customaction: false
#The custom action command. %p to get player name
customcommand: deop %p
#Text that will be complemented in the "youwaswarned" message(will replace the "%a")
customactiontext: deopped
#If you don't want a custom action just remove the '%a' and write banned
youwaswarned: You have been warned %w times. You have been %a.
#Here is the players warnings
#Only if you warn someone
#ALL NAMES WILL BE PUTTED IN LOWERCASE
warnings:
adriano3ds: 0
whatever: 2
SOMENTE NA VERSÃO V2.0 pra cima
Mensagens em portugues:
EXTRA
You can use this plugin with my plugin Admin Way
See Admin Mode "EXTRA" topic to see how it work
END
Thanks if you use this
评论 0
登录后参与评分
还没有评论,来抢沙发吧