DiscordBans
一款带有 Discord 链接和灵活配置选项的惩罚插件。
配置
启动服务器后,config.yml 将位于 plugins/DiscordBansN 目录下。
要开始使用此插件,必须填写以下字段:
discord-bot-id(非 webhook ID)
discord-channel-id(发布惩罚消息的频道 ID)
您可以编辑插件配置文件中的每一行内容。
惩罚类型
封禁 (Ban)
/ban player reason

示例:
/ban yokixq grief
临时封禁 (Tempban)
/tempban player time reason
示例:
/tempban yokixq 1d grief

警告 (Warns)
/warn type player time(optional) reason
插件中有三种类型的警告:
红色、橙色、黄色
红色警告 - 此警告只能由管理员移除,没有自动解除时间。
/warn red yokixq grief

黄色警告 - 此警告可由管理员移除,也可随时间自动解除。当黄色警告结束时,玩家将获得一个红色警告,而黄色警告将重新开始计时,直到管理员将其移除。
/warn yellow yokixq 1d grief

橙色警告 - 此警告可由管理员移除,也可随时间自动解除。如果玩家拥有 3 个橙色警告,他们将获得一个红色警告,且所有橙色警告将被清除。
/warn orange yokixq 1d grief

禁言 (Mute)
/mute player time reason
示例:
/mute yokixq 1d toxic

命令
| 命令 | 权限 | 描述 | 斜杠命令 | DiscordSRV |
|---|---|---|---|---|
/ban <player> <reason> |
discordbansn.ban |
永久封禁玩家 | ✅ | ✅ |
/tempban <player> <time> <reason> |
discordbansn.tempban |
临时封禁玩家一段时间 | ✅ | ✅ |
/unban <player> |
discordbansn.unban |
解除玩家封禁 | ✅ | ✅ |
/mute <player> <time> <reason> |
discordbansn.mute |
禁言玩家 | ✅ | ✅ |
/unmute <player> |
discordbansn.unmute |
解除玩家禁言 | ✅ | ✅ |
/warn <type> <player> [time] <reason> |
discordbansn.warn |
警告玩家 | ✅ | ✅ |
/unwarn <player> <id> |
discordbansn.unwarn |
通过 ID 移除警告 | ✅ | ✅ |
/kick <player> <reason> |
discordbansn.kick |
踢出玩家 | ✅ | ❌ |
/warns [player] |
discordbansn.warns |
查看你的警告记录(查看他人需要 discordbansn.warnsother) |
❌ | ❌ |
/banlist [bans|tempbans|all] |
discordbansn.banlist |
列出封禁名单 | ❌ | ❌ |
/discordbans [reload|version] |
discordbansn.reload 用于重载 |
重载配置或显示版本信息 | ❌ | ❌ |
DiscordSRV 挂钩
如果你的服务器上安装了 DiscordSRV,该插件将在带有惩罚的消息中 @提及玩家(如果启用了链接功能)。
发现 Bug 或需要帮助?
想了解未来更新或报告问题 => Discord
DiscordBans
Punishment plugin with discord link and flexible config
Configuration
After starting the server, config.yml will be in plugins/DiscordBansN.
To start working with the plugin you must fill the fields:
discord-bot-id (not webhook)
discord-channel-id (chanell where will publish punishments)
You can edit every string in plugin config
Type of punishments
Ban
/ban player reason

Example:
/ban yokixq grief
Tempban
/tempban player time reason
Example:
/tempban yokixq 1d grief

Warns
/warn type player time(optional) reason
In the plugin there is 3 types of warns
Red, Orange, Yellow
Red - This warn can only be removed by a moderator, no time to remove
/warn red yokixq grief

Yellow - This warn can be removed by the moderator and can be removed over time, when the yellow warning ends the player will be given a red warn, and the yellow warn will start again while moderator don't remove it
/warn yellow yokixq 1d grief

Orange - This warning can be removed by a moderator and can be removed over time. If a player has 3 orange warnings, they will receive a red warning and the orange warnings will be removed.
/warn orange yokixq 1d grief

Mute
/mute player time reason
Example:
/mute yokixq 1d toxic

Commands
| Command | Permission | Description | Slash | DiscordSRV |
|---|---|---|---|---|
/ban <player> <reason> |
discordbansn.ban |
Permanently ban a player | ✅ | ✅ |
/tempban <player> <time> <reason> |
discordbansn.tempban |
Ban a player for a duration | ✅ | ✅ |
/unban <player> |
discordbansn.unban |
Unban a player | ✅ | ✅ |
/mute <player> <time> <reason> |
discordbansn.mute |
Mute a player | ✅ | ✅ |
/unmute <player> |
discordbansn.unmute |
Unmute a player | ✅ | ✅ |
/warn <type> <player> [time] <reason> |
discordbansn.warn |
Warn a player | ✅ | ✅ |
/unwarn <player> <id> |
discordbansn.unwarn |
Remove a warn by id | ✅ | ✅ |
/kick <player> <reason> |
discordbansn.kick |
Kick a player | ✅ | ❌ |
/warns [player] |
discordbansn.warns |
See your warns (others need discordbansn.warnsother) |
❌ | ❌ |
/banlist [bans|tempbans|all] |
discordbansn.banlist |
List bans | ❌ | ❌ |
/discordbans [reload|version] |
discordbansn.reload for reload |
Reload config or show version | ❌ | ❌ |
DiscordSRV Hook
If you have DiscordSRV on your server, the plugin will ping players in message with punishment (if linking turn on)
Find bug or need help?
Do you want to know about future updates or report a problem => Discord
下载 DiscordBans
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordBans
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordBans
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordBans
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordBans
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordBans
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordBans
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordBans
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordBans
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DiscordBans
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
2.39
新增
- 可配置的惩罚嵌入消息,现在可以在
config.yml中单独为每种惩罚设置静音:punishment-embeds.ban / tempban / unban / mute / unmute / warn / unwarn / kick。 /kick <玩家> <理由>— 新命令,权限discordbansn.kick- 新的配置选项
warn-time-required,用于斜杠命令。
修复
- 当 Discord 的
/warn命令缺少time参数时,不再抛出 NullPointerException; 现在会返回清晰的错误提示。 - 无效的警告类型不再被静默忽略,Discord 选项现已改为下拉菜单(黄色 / 橙色 / 红色),并为缓存的命令提供回退错误消息。
已更改
- discordSRV 的封禁/静音角色同步现在与嵌入(embed)独立:禁用嵌入不再阻止角色更新。
如果你发现 bug,请在我的 Discord 中报告
- 如果管理员不删除,黄色警告将重新开始
- 如果发现错误,请在我的 Discord 中报告
- 修复了 MySQL 负载过高的问题
- 修复了检查处罚可能导致服务器卡死的问题
- 修复了黄色警告显示异常:过期的黄色警告现在会自动移除并转换为红色警告,而不是创建新的黄色警告(旧版本将在下一次更新中返回)
- 修复了在缺少 Discord 频道时,触发三次红色警告后的自动封禁功能未生效的问题
- 优化了 Tab 补全功能
如果你发现任何 Bug,请在我的 Discord 中报告
修复了插件使用 MySQL 时负载过高的问题
优化了部分命令
如发现 bug,请在我的 Discord 中报告
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧