SimpleBanHammer
免责声明
免责声明 1:
对于 1.1.1 以下版本:若要使用玩家前缀进行公共广播功能,需要安装 LuckPerm 插件!
免责声明 2:
1.1.5 版本未经过我的测试,因此恳请您,如果发现任何错误/问题,请提交 GitHub Issue 或在 Discord 上私信我(.monkeee.)
摘要
本插件旨在帮助那些对常规封禁方式感到厌倦的管理员。
v1.1.4 支持将日志发送到 Discord Webhook
功能
当玩家被“封禁之锤”击中时,他们将因用户设定的理由而被永久封禁。管理员可以通过配置文件自定义消息,向所有玩家广播该封禁信息。
服务器操作员不会受到封禁之锤的影响。
自定义理由仅在 1.0.2 及以上版本可用!
权限
sbh.give - 用于给自己颁发封禁之锤的命令所需权限 默认: OP
sbh.usehammer - 用于使用封禁之锤封禁他人所需的权限 默认: OP
sbh.reload - 用于重新加载配置文件的权限 默认: OP
sbh.exampt - 保护玩家免受封禁之锤的惩罚 默认: False
命令
/givehammer <reason> - 给自己颁发带有自定义理由的封禁之锤。(需要权限: sbh.give) (1.1.4 及更低版本)
/givebanhammer reason:"<reason>" command:"ban %player% %reason%" - 给自己颁发带有自定义理由和命令的封禁之锤。如果留空,将使用配置文件中的默认值。(1.1.5+)
/sbh_config - 编辑和管理配置文件 (需要权限: sbh.config)
问题与更新
更新:
此项目是我的副业项目,因此请勿期望会有完整或频繁的更新。
问题:
如果您发现任何问题,请在此处报告它们,我会尽我所能解决它们!
当前配置文件 (v1.1.5)
# 在任何情况下都不要修改以下内容!
# current-version: "1.0.4"
# 类型: Bool. 是否向所有玩家广播封禁信息。
enable-broadcast: false
# 类型: str. 向所有玩家广播的消息。
# 仅在启用 'enable-broadcast' 时生效
# 变量:
broadcast-message: '&c玩家 %prefix_player% &c已被 %prefix_admin% 封禁,原因为: &e%reason%'
# 类型: str, 用于封禁玩家的命令。(例如: tempban, ban, eban, mute, ...)
# 必需: 执行者必须拥有使用该命令的权限!
ban-command: 'ban %player% %reason%'
# 类型: str, 未提供参数时的默认封禁理由。
default-reason: "封禁之锤已宣判!"
# 类型: Bool, 操作员玩家在加入时是否接收更新通知。
update-notifier: true
# 类型: Str, 封禁之锤的物品。注意:必须是有效的物品格式 (例如: mace, iron_axe, diamond_axe,...)
item-banhammer: "IRON_AXE"
# 类型: Str, 指定执行的命令是由玩家还是控制台运行。
enable-console-sender: true
# 类型: Str, 用于将封禁日志记录到 Discord 的 Webhook URL。
# 如果不需要请使用留空
discord-webhook: ""
SimpleBanHammer
Discalimers
Disclaimer 1:
For version below 1.1.1: plugin LuckPerm is required for the public broadcast feature to use player's prefix!
Disclaimer 2:
version 1.1.5 has not been tested by me, so i implore you, that if you find any bug/issue, please make a github issue or DM me on discord (.monkeee.)
Summery
This Plugins is for admins that are board of banning players the normal way.
v1.1.4 has the ability to send logs to discord webhooks
Functionality
When a player is hit with the ban hammer, he will forever be banned from the server with the reason set by the user. The ban can be broadcasted to all the players with a customized message via config.
Server Operators will not be affected by the ban hammer.
CUSTOM REASON IS ONLY AVAILABLE IN THE VERSION 1.0.2 AND UP!
Permissions
sbh.give - Required for using the command to give yourself the ban hammer DEFAULT: OP
sbh.usehammer - Required to use the ban hammer to ban someone. DEFAULT: OP
sbh.reload - Required for reloading the config. DEFAULT: OP
sbh.exampt - Protects a player from being banned by the hammer. DEFAULT: False
Commands
/givehammer <reason> - Give yourself the ban hammer with a custom reason. (Permission Required: sbh.give) (1.1.4 and lower)
/givebanhammer reason:"<reason>" command:"ban %player% %reason%" - Give yourself the ban hammer with a custom reason and command. If left empty, will use the default values form the config. (1.1.5+)
/sbh_config - Edit and manage the config (Permission Required: sbh.config)
Issues and Updates
UPDATES:
This project is my side project so do not expect full updates or anything similar.
ISSUES:
If you find any issues, report them here and i will resolve them whenever i can!
Current Config (v1.1.5)
# DO NOT TOUCH UNDER ANY CIRCUMSTANCES!
# current-version: "1.0.4"
# Type: Bool. Weather the ban is broadcasted to all the players.
enable-broadcast: false
# Type: str. Message that is broadcasted to all the players.
# ONLY IF 'enable-broadcast' IS ENABLED
# Vars:
broadcast-message: '&cPlayer %prefix_player% &chas been banned by %prefix_admin% with the reason: &e%reason%'
# Type: str, The ban command used to ban players. (ex. tempban, ban, eban, mute, ...)
# REQUIRED: The moderator has to have permission to use said command!
ban-command: 'ban %player% %reason%'
# Type: str, The ban message if non arguments given.
default-reason: "The Ban Hammer Has Spoken!"
# Type: Bool, If op players should receive Update Notifications when joining.
update-notifier: true
# Type: Str, The item for the ban hammer. NOTE: HAS TO BE A VALID ITEM FORMAT (ex.: mace, iron_axe, diamond_axe,...)
item-banhammer: "IRON_AXE"
# Type: Str, If the executed command is run by the player or the console.
enable-console-sender: true
# Type: Str, Discord webhook url for logging bans to discord.
# LEAVE EMPTY IF NOT USED
discord-webhook: ""
下载 SimpleBanHammer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleBanHammer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleBanHammer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleBanHammer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleBanHammer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleBanHammer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleBanHammer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleBanHammer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleBanHammer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleBanHammer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- BIG 修复了大量 bug
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧