SpamHammer v3.0
SpamHammer
SpamHammer 用于检测短时间内发送大量消息(以及可选地重复发送相同消息)的玩家。它会按照静音、踢出、最后封禁的顺序处理那些反复发送相同消息的刷屏玩家。服务器管理员(OP)以及拥有相应权限的玩家不受影响。
命令
spam:
description: SpamHammer 的基础命令。
usage: |
/<command> 取消静音
/<command> 重置
/<command> 重载
spamunmute:
描述: 解除由 SpamHammer 封禁的玩家的静音状态。
用法: |
/command> <playername>
/<command> dumptruckman - 解除对 dumptruckman 的禁言(如果他被 SpamHammer 禁言过)。
permission: spamhammer.cmd.unmute
spamreset:
描述: 重置 玩家 与 SpamHammer 的历史记录
用法: |
/<命令> <玩家名称>
/<command> dumptruckman - 使效果如同 dumptruckman 从未发送过垃圾消息。
permission: spamhammer.cmd.reset
spamreload:
description: 重新加载 SpamHammer 的 config.yml 配置文件
usage: |
/<command>
permission: spamhammer.cmd.reload
权限
spamhammer.*:
description: 允许完全访问 SpamHammer
children:
spamhammer.bypass.*: true
spamhammer.cmd.*: true
default: op
spamhammer.bypass.*:
description: 允许绕过封禁惩罚
children:
spamhammer.bypass.repeat: true
spamhammer.bypass.punish.: true
default: false
spamhammer.bypass.punish.:
description: 允许绕过封禁惩罚
children:
spamhammer.bypass.punish.ban: true
spamhammer.bypass.punish.kick: true
spamhammer.bypass.punish.mute: true
default: false
spamhammer.bypass.repeat:
description: 允许绕过重复消息限制
default: false
spamhammer.bypass.punish.ban:
description: 允许绕过封禁惩罚
default: false
spamhammer.bypass.punish.kick:
description: 允许绕过踢出惩罚
default: false
spamhammer.bypass.punish.mute:
description: 允许绕过禁言惩罚
default: false
spamhammer.cmd.*:
description: 允许使用所有命令
children:
spamhammer.cmd.unmute: true
spamhammer.cmd.reset: true
spamhammer.cmd.reload: true
default: false
spamhammer.cmd.unmute:
description: 允许使用解除禁言命令
default: false
spamhammer.cmd.reset:
description: 允许使用重置命令
default: false
spamhammer.cmd.reload:
description: 允许使用重载命令
default: false
更多信息
查看信息页面以获取更多详情。
回传数据
是的,SpamHammer 会回传数据。该插件会调用我的服务器 ,并将以下内容保存到数据库中:
IP 地址和端口号永远不会显示,它们仅用于区分不同的服务器。我希望插件能继续保留这一功能,这样我可以了解有多少服务器使用了哪个版本,基本上就是这点。要关闭此功能,请将配置文件中的 settings.callhome 设置为 false
致谢
非常感谢 dumptruckman 创建了这个插件,希望我在重写所有内容后不会让大家失望。但我认为 PluginBase 钩子以不必要的方式增加了插件的臃肿程度,文件大小从 100+KB 减少到了 30KB ;)
源码
GitHub
SpamHammer v3.0
SpamHammer
SpamHammer detects people sending too many messages in short amounts of time (and optionally repeated messages). Mutes, kicks, and then bans players that spam the same message in that order. Server OPs and people with appropriate permissions are unaffected.
Commands
spam:
description: Base command for SpamHammer.
usage: |
/<command> unmute
/<command> reset
/<command> reload
spamunmute:
description: Unmutes a player banned by SpamHammer.
usage: |
/<command> <playername>
/<command> dumptruckman - unmutes dumptruckman if he was muted by SpamHammer.
permission: spamhammer.cmd.unmute
spamreset:
description: Resets a player's history with SpamHammer
usage: |
/<command> <playername>
/<command> dumptruckman - Makes it like dumptruckman never spammed in the first place.
permission: spamhammer.cmd.reset
spamreload:
description: Reloads the SpamHammer config.yml
usage: |
/<command>
permission: spamhammer.cmd.reload
Permissions
spamhammer.*:
description: Allows full access to SpamHammer
children:
spamhammer.bypass.*: true
spamhammer.cmd.*: true
default: op
spamhammer.bypass.*:
description: Allows to bypass ban punishments
children:
spamhammer.bypass.repeat: true
spamhammer.bypass.punish.*: true
default: false
spamhammer.bypass.punish.*:
description: Allows to bypass ban punishments
children:
spamhammer.bypass.punish.ban: true
spamhammer.bypass.punish.kick: true
spamhammer.bypass.punish.mute: true
default: false
spamhammer.bypass.repeat:
description: Allows to bypass repeat message limit
default: false
spamhammer.bypass.punish.ban:
description: Allows to bypass ban punishments
default: false
spamhammer.bypass.punish.kick:
description: Allows to bypass kick punishments
default: false
spamhammer.bypass.punish.mute:
description: Allows to bypass mute punishments
default: false
spamhammer.cmd.*:
description: Allows use of all commands
children:
spamhammer.cmd.unmute: true
spamhammer.cmd.reset: true
spamhammer.cmd.reload: true
default: false
spamhammer.cmd.unmute:
description: Allows use of the unmute command
default: false
spamhammer.cmd.reset:
description: Allows use of the reset command
default: false
spamhammer.cmd.reload:
description: Allows use of the reload command
default: false
More
Check out the info page for more details.
Phoning home
Yes, SpamHammer phones home. The plugin calls my server, and saves the following to the database:
- the plugin name
- the plugin version
- the server IP
- the port
The IP and port are never shown, they just are used to differentiate servers from each other. I would like you to keep the plugin doing this, so I have an idea how many servers are using which version, that's basically it. To turn it off, change the config yml setting settings.callhome to false
Credits
Thanks a lot to dumptruckman for creating this plugin, I hope I do not disappoint ppl by rewriting everything. But I feel that the PluginBase hook is something that bloats the plugin in an unnecessary way, the file size fell from 100+KB to 30KB ;)
Source
GitHub
评论 0
登录后参与评分
还没有评论,来抢沙发吧