描述
EzWarnings 是一个简单且易于使用的警告系统。这正是你一直在寻找的完美简易警告系统!该插件非常适合服务器用来轻松地对玩家发出警告。你可以设置自定义警告、自定义惩罚,以及更多功能!
在 3.0 更新中,你可以进一步自定义此插件!当玩家受到警告/惩罚时,你不仅可以发送消息,还可以运行命令、向玩家发送私聊消息等等!
特别鸣谢那位在 Mac 上运行 EZW 的孤胆英雄... (点击)
本插件依赖于 CS-CoreLib,安装本插件时将自动下载它。
命令与权限
| 命令 | 描述 | 权限 | ||||
| /warn <player> <reason> | 警告一名玩家,使用配置文件中定义的自定义警告。 | warnings.warn | ||||
| /warnings <player> | 显示你的惩罚和警告记录;如果添加玩家参数,则显示该玩家的警告和惩罚记录。 别名:/punishments | 查看自己:warnings.view;查看他人:warnings.view.others | ||||
| /setwarnings <player> [amount] | 设置玩家的警告次数。如果未指定数量,默认值为 0。 别名:/resetwarnings, /setw | warnings.reset.warnings | ||||
| /setpunishments <player> [amount] | 设置玩家的惩罚次数。如果未指定数量,默认值为 0。 别名:/resetpunishments, /setp | warnings.reset.punishments |
配置
warnings: ## 警告配置。 others: ## 配置当没有针对当前警告数量的特定配置部分时的操作 actions: ## 注意没有最终选项,你不必拥有它。 - '[warnbroadcast]' - '[msg]%player%Youhavebeenwarnedfor%reason%!' '3': ## 配置用户达到 3 次警告时的操作。 final: true ## 这是最后一次警告吗?也就是说,在此警告后是否重置玩家的警告次数? actions: - '[warnbroadcast]' - '[punish]%player%'punishments: others: actions: - '[punishbroadcast]' - '[consolecmd]mute%player%10m' - '[msg]%player%&cYouwerewarned3times,soyouarenowmutedfor10minutes.' '3': final: true actions: - '[punishbroadcast]' - '[consolecmd]ban%player%Youhavealreadybeenpunished3times!'
warning-types: ## 在此定义你的警告类型,仅限一个单词! - swearing - caps - offense - ddos_threats - racisim - abuse
log-to-console: true ## 你是否希望将广播日志记录到控制台?
options: auto-update: true ## 自动更新(推荐)?
操作
可在两个部分中使用的操作:
- [consolecmd] <command>
- [msg] %player% <message>
- [punish] %player%
仅可在警告部分中使用的操作:
- [warningbroadcast]
仅可在惩罚部分中使用的操作:
- [punishbroadcast]
开发者 API
你可以在这里找到该出色 API 的说明。
如果你希望你的插件被列为使用该 API 的插件,请在下方评论!
安装方法
- 下载插件
- 将其拖放到你的 plugins 文件夹中
- 重启服务器
- 等待 CS-CoreLib 被下载
- 重启服务器
- 享受轻松警告玩家的功能吧!
自动更新器与指标统计
自 v2.0 Beta2 版本起,本插件使用自动更新器,以确保你使用的是我插件的最佳版本。如果你想退出自动更新,请设置 config -> options -> auto-update: false。
你可以通过执行 /version EzWarnings 来检查当前使用的插件版本。
本插件还使用了一个 Metrics-System 系统,用于收集信息以进行统计分析。有关此系统的更多信息,请参阅这里。
你可以选择退出此服务,方法是前往 plugins/Plugin Metrics/config.yml 并设置 opt-out: true。
即将推出的功能
- 将总警告数/惩罚数存储在文件中
有任何想法吗?请在下方评论中提出!
捐赠
喜欢我的插件吗?想表达你的感谢?
感谢下载量达到 3,000 次!!
Description
EzWarnings is a simple and easy to use warning system. This the perfect easy warning system you have been looking for! This plugin is great for servers to easily warn their players. You can set custom warnings, custom punishments, and more!
With the 3.0 update, you can customize this plugin even more! You not only can send a message when a player gets warned/punished, you can run commands, privately message a player, and much more!
Shoutout to that 1 guy running EZW on a mac... (click)
This plugin depends on CS-CoreLib, and it will be automatically downloaded when you install this plugin.
Commands and Permissions
| Command | Description | Permission | ||||
| /warn <player> <reason> | Warn a player, with custom warnings defined in the config. | warnings.warn | ||||
| /warnings <player> | Shows your punishments and warnings, and if you add a player argument, shows the warnings and punishments of that player. Alias: /punishments | warnings.view for yourself, warnings.view.others for others. | ||||
| /setwarnings <player> [amount] | Set the amount of warnings for a player. If no amount is specified, it will default to 0. Aliases: /resetwarnings, /setw | warnings.reset.warnings | ||||
| /setpunishments <player> [amount] | Set the amount of punishments for a player. If no amount is specified, it will default to 0. Aliases: /resetpunishments, /setp | warnings.reset.punishments |
Configuration
warnings: ## Warnings configuration. others: ## Configure actions when there isn't a configuration section for the current number of warnings actions: ## Notice there is no final option, you dont have to have it. - '[warnbroadcast]' - '[msg]%player%Youhavebeenwarnedfor%reason%!' '3': ## Configure actions for when the user reaches 3 warnings. final: true ## Is this the final warning? AKA Should the warning amount reset for the player on this warning? actions: - '[warnbroadcast]' - '[punish]%player%'punishments: others: actions: - '[punishbroadcast]' - '[consolecmd]mute%player%10m' - '[msg]%player%&cYouwerewarned3times,soyouarenowmutedfor10minutes.' '3': final: true actions: - '[punishbroadcast]' - '[consolecmd]ban%player%Youhavealreadybeenpunished3times!'
warning-types: ## Define your warning types here, only 1 word though! - swearing - caps - offense - ddos_threats - racisim - abuse
log-to-console: true ## Do you want to log broadcasts to console?
options: auto-update: true ## Auto Update (recommended)?
Actions
Actions that can be used in both sections:
- [consolecmd] <command>
- [msg] %player% <message>
- [punish] %player%
Actions that can only be used in warnings section:
- [warningbroadcast]
Actions that can only be used in punishments section:
- [punishbroadcast]
API for Developers
You can find a description of the awesome API here.
Comment below if you want your plugin listed as a plugin using the API!
How to install
- Download the plugin
- Drag & drop it into your plugins folder
- Restart your server
- Wait for CS-CoreLib to be downloaded
- Restart your server
- Enjoy the ease of warning players!
Auto Updater & Metrics
Since v2.0 Beta2, this plugin uses an Auto updater, to make sure you're using the best version of my plugin. If you would like to opt-out, set config -> options -> auto-update: false.
You can check what version of the plugin you are using by doing /version EzWarnings.
This plugin also uses a Metrics-System which collects information to use for statistics. See more information about this here.
You can opt-out of this service can be done by going to plugins/Plugin Metrics/config.yml and set opt-out: true.
Upcoming Features
- Total warnings/punishments stored in a file
Have any ideas? Put them in the comments below!
Donate
Like my plugin? Want to show your appreciation?
Thanks for 3,000 downloads!!
下载 EzWarnings
下载 EzWarnings
下载 EzWarnings
下载 EzWarnings
下载 EzWarnings
下载 EzWarnings
下载 EzWarnings
下载 EzWarnings
下载 EzWarnings
下载 EzWarnings
v3.0.2
- 修复:
修复了警告/惩罚广播中的问题。
v3.0.2
- 修复:
修复了默认配置中的错误。
v3.0.1
修复:
- 修复了启动时的空指针异常。
我发誓这之前没发生过……
v3.0
+ 完全重做了配置!
+ 对 API 进行了一些修改
v2.3
+ 将 Players 转换为 OfflinePlayers,因此所有命令都支持离线玩家。
v2.2
- 将 /resetwarnings 更改为 /setwarnings,并保留了别名 /resetwarnings 和 /setw。
- 将 /resetpunishments 更改为 /setpunishments,并保留了别名 /resetpunighments 和 /setp。
v2.1.1
- 默认的 messages.yml 做了一些小改动。
- 修复 /resetwarnings & /resetpunishments {player} 变量现在确实会被替换为玩家的名字。
v2.1
+ 如果在 /resetwarnings 和 /resetpunishments 中没有指定数量,默认为 0(将被设置为 0)。
- 修复 /resetpunishments 现在确实会重置惩罚而不是警告 xD
v2.0.5
- 修复 修复了惩罚命令中 {reason} 未被替换的问题。
v2.0.4
- 修复
修复了启动时的 NullPointerException。
也许添加了 Java 7 兼容性?
v2.0.3
也许这次兼容 Java 7?不 D:
v2.0.2
- 搞错了,上传了错误的 jar :P
v2.0.1
使用 Java 7 编译,兼容 Java 7 和 8。不 :(
v2.0 Release
+ 添加了 /resetwarnings 和 /resetpunishments
+ 为这些命令添加了相应的权限。
v2.0 Beta4 BugFix
- 修复
忘记注册 /resetwarnings 命令 :P
v2.0 Beta4
+ 添加了 /resetwarnings
+ 向 API 添加了更多内容
v2.0 Beta3
+ 添加了 Metrics
+ 添加了供开发者使用的 API
v2.0 Beta2
+ 添加了自动更新器
v2.0 Beta1 - 完全重写
+ 新的依赖项:CS-CoreLib,安装时将自动下载
+ 添加了可自定义的消息
+ 添加了可自定义的警告
+ 重做了配置
v1.0
- 制作了该插件
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧