由于学业繁忙,我将把本项目的管理权移交给 killjoy64;如果他拒绝接手,那么任何希望接管并继续开发该项目的人都可以自由获取。——PWicks23
SwearSlapper
是否厌倦了有人在你的服务器上通过辱骂和粗鲁对待其他玩家来无视规则?你的服务器规定禁止说脏话,但偶尔仍有玩家违反,而你不确定该如何惩罚他们?那么这个插件正是为你准备的。
该插件会检测聊天事件中的脏话。如果发现黑名单中的词汇,它将取消该聊天事件,这样其他人就看不到这条令人不适的消息。此外,它还会扇该玩家一巴掌并发出警告消息!拥有 SwearSlapper.notify 权限节点的玩家可以看到这些尝试说脏话的行为,并以简洁、清晰且不刷屏的方式收到一条深灰色的提示:“(玩家名称) 尝试说脏话!”你也可以在配置文件中修改设置,让相关人员看到玩家原本试图输入的内容。我对这条消息进行了大量测试,力求在保持可见性的同时尽可能减少干扰,以便你的管理员能够注意到。
你还可以通过 SwearSlapper.canswear 权限节点来选择忽略哪些人,因此赋予任何模组管理员或其他工作人员此权限后,他们仍然可以说脏话(主要是为了让工作人员在内部频道中仍可以说脏话,此功能完全取决于你的创意)。
SwearSlapper 版本 2.0.0 已发布!!
感谢 Fantasia 服务器的另一位管理员兼程序员 killjoy64 的大力帮助,SwearSlapper 2.0.0 终于发布了!这次更新是一个巨大的飞跃,我非常兴奋地宣布它的到来!通过这次更新,你现在可以从游戏内、控制台或直接从 BlackListedWords.txt 文件中添加、移除、检查以及获取所有黑名单词汇的列表!这让你可以完全控制玩家在服务器上可以说什么和不可以说什么。你可以使用 ZIP 包中包含的预定义初始词表,也可以从头创建自己的黑名单。详细的 help.txt 文件将指导你完成所有设置步骤。
权限节点:
- Swearslapper.admin
- 所有 /ss 命令。
- SwearSlapper.caps
- 手动对过度使用大写的人进行惩罚!
- SwearSlapper.language
- 手动对使用不当语言的人进行惩罚。先执行此惩罚,然后输入命令添加漏网的词汇!
- SwearSlapper.canswear
- 拥有此权限的人可以说脏话。
- SwearSlapper.notify
- 拥有此权限的人在他人说脏话时会收到通知!
命令
- /ss add <word> - 向黑名单添加一个词汇。
- /ss remove <word> - 从黑名单移除一个词汇。
- /ss check <word> - 检查某个词汇是否在黑名单中。
- /ss list - 显示所有黑名单词汇的列表。
- /ss reload - 重新加载插件的文件。
- /ss help - 显示 SwearSlapper 的帮助菜单。
- /caps - 手动对过度使用大写的玩家进行惩罚。
- /language - 手动对使用不当语言的玩家进行惩罚。
待办事项:
- 使惩罚方式可配置。
- 添加更多词汇
- 添加可配置的禁用词汇列表。
- 添加游戏内的配置重载功能。
- 在警报消息中包含违规者所说的内容(将支持配置)
安装/配置:
安装说明和其他帮助信息均包含在 SwearSlapper.zip 内的 help.txt 文件中!
更新日志:
v2.0.0
- 几乎完全重写了插件代码,以提高效率。
- 添加了完全可配置的黑名单词汇列表。
- 添加了游戏内命令,用于通过添加、移除、检查和获取所有黑名单词汇列表来控制黑名单。
- 添加了配置和黑名单重载命令。
- 添加了帮助文件!
- 在配置中添加了显示尝试说脏话的选项。
- 增加了对 CommandBook 和 HeroChat 的 /me 命令的过滤支持。
- 修复了闪电打击问题
v1.1.5
- 修复了插件被打包在 ZIP 中的问题(抱歉!)
- 为插件添加了命令
v1.1.2:
- 添加了对违规玩家的可配置闪电打击。
- 修复了通知消息中不显示玩家名称的问题。
v1.0.1:
源代码
我和 Killjoy64 都不再为 Minecraft 开发 Java 插件,因此本项目将不再继续维护。如果有开发者希望继续此项目,你可以在我的 GitHub 上分叉源代码:
感谢任何决定继续此项目的人!
请在下方评论你发现的任何错误或与此插件不兼容的其他插件。非常感谢大家的反馈。
Due to college and being extremely busy I am handing ownership of this project to killjoy64; should he decline then it is free to anyone who wants to take over the project and continue development - PWicks23
SwearSlapper
Tired of people coming on your server and disrespecting the rules by swearing and being rude to players? Have rules on no swearing, yet occasionally players do, and not sure how to punish them? Then this is the plugin for you.
This plugin will detect swear words in the chat events. If it finds a word that is blacklisted it will cancel the chat event so no one sees the nasty message. What more, it also slaps the player and warns them with a message! People with the SwearSlapper.notify node can see these swear attempts with a simple, clean and not-spammy message saying "(playername) attempted to swear!" in dark gray. You can also edit the config so they can see what it was the player attempted to say! I have done a lot of testing with this message to make it as least interrupting as possible, although still visible for your staff to notice.
You can also choose who the plugin ignores with the SwearSlapper.canswear node, so with this given to any mods or other staff they can still swear (Implemented mainly so staff can still swear in staff channels, this node is really subject to your creativity).
SwearSlapper Version 2.0.0 is released!!
Thanks to the major help of killjoy64, another admin and coder of the Fantasia server, the release of SwearSlapper 2.0.0 is finally here! This update is a huge leap forward and I am very excited to announce it! With this update you can now add, remove, check and get a list of all the blacklisted words from in-game, console, or straight from the BlackListedWords.txt file! This allows a complete control over what people can and can't say on your server, you can either use the predefined starter list of words included in the ZIP, or you can create your very own blacklist from scratch. The in-depth help.txt file will guide you through how to set this all up.
Permission nodes:
- SwearSlapper.*
- Contains all permissions!
- Swearslapper.admin
- All the /ss commands.
- SwearSlapper.caps
- Manually slap people for excessive caps!
- SwearSlapper.language
- Manually slap for bad language. Slap with this then type the command to add the word that got through!
- SwearSlapper.canswear
- People with this permissions can swear.
- SwearSlapper.notify
- People with this get notified when people swear!
Commands
- /ss add <word> - Add a word to the blacklist.
- /ss remove <word> - Remove a word from the blacklist.
- /ss check <word> - Check if a word is blacklisted.
- /ss list - Shows a list of all the blacklisted words.
- /ss reload - Reload the plugin's files.
- /ss help - Shows the SwearSlapper help menu.
- /caps - Manually slap a player for excessive caps.
- /language - Manually slap s player for bad language.
To do:
- Make the slap configurable.
- Add more words
- Add a configurable list of blocked words.
- Add in-game config reload.
- Add what the offender said in the alert message (will be configurable)
Install/Config:
Installation instructions and other help is all included in the help.txt file inside the SwearSlapper.zip!
Change Log:
v2.0.0
- Almost completely recoded the plugin to work more efficiently.
- Added a completely configurable list of blacklisted words.
- Added commands in-game to control the blacklisted words by adding, removing, checking and getting a list of all blacklisted words.
- Added a config and blacklist reload command.
- Added a help file!
- Added option in config to show the swear attempt.
- Added filtering through CommandBook and HeroChat's /me command.
- Fixed lightning strike
v1.1.5
- Fixed the plugin being in a ZIP (Sorry!)
- Added commands to the plugin
v1.1.2:
- Added configurable lightning strike on offending players.
- Fixed player's name not showing up on notify message.
v1.0.1:
- Added configurable messages
Source Code
Both myself and Killjoy64 no longr develop Java plugins for Minecraft, so this project will no longer be continued. If any developers wish to continue this project you can fork the source on my GitHub here:
Thanks for anyone who decides to continue this!
Please comment below any bugs you find or plugins this won't work with. All comments are very much appreciated.
评论 0
登录后参与评分
还没有评论,来抢沙发吧