?SpicyAzisaBan
?Description
SpicyAzisaBan 是一个用于 Velocity 的一站式处罚系统。(深受 AdvancedBan 启发)
它支持多种类型的处罚,以下是 SpicyAzisaBan 支持的处罚类型:
- Ban(封禁)
- Temp ban(临时封禁)
- IP ban(IP 封禁)
- Temp IP ban(临时 IP 封禁)
- Mute(禁言)
- Temp mute(临时禁言)
- IP mute(IP 禁言)
- Temp IP mute(临时 IP 禁言)
- Warning(警告)
- Caution(劝告)
- Kick(踢出)
- Note(备注)
SpicyAzisaBan 还支持多服务器环境(例如多个 Velocity 实例),因此你可以在网络环境中使用它。
✨Features
- 对玩家进行 Ban、Mute、Warn、Caution、Kick、Note 操作
- 支持 Discord Webhook
- 支持多个 Velocity 实例
- 为每个服务器/每种处罚类型预定义理由
- 可自定义消息
- 一次性封禁所有小号账号
- 封锁模式(阻止新玩家加入服务器)
- 通过外部 API 实现处罚自动化(详见下文)
❗️Requirements
- Java 17 或更高版本
- 互联网连接(用于获取依赖项)
- MySQL 或兼容 MySQL 的数据库(例如 MariaDB)
- 我们建议使用受支持的 MariaDB 版本
?Installation
- 从 Modrinth 下载插件并将其放入服务器的
plugins文件夹中。 - 启动服务器一次以生成配置文件。(或者你也可以手动创建文件)
- 在
plugins/SpicyAzisaBan/config.yml中配置插件。 - 重启服务器。
- 执行
/sab info检查插件是否正常工作。
?Configuration
# SpicyAzisaBan config
#
# Important: If you are running from CLI, you only need to configure database settings, and you can just ignore
# anything else.
# Command prefix
# ----------
# You will be able to run command with: /${prefix}command
# So if you set this to "/", you can run command with //command
prefix: ""
# Database settings
# ----------
# MySQL or MySQL-compatible (e.g. MariaDB) database is required to run SpicyAzisaBan.
database:
host: localhost
name: spicyazisaban
user: spicyazisaban
password: p@55w0rd
verifyServerCertificate: false
useSSL: true
# If true, the plugin will prevent players from joining the server if database is inaccessible.
failsafe: true
warning:
# Don't set to 1s, it's too terrible because we fetch the punishments from database every time we check for warnings
sendTitleEvery: 10s
titleStayTime: 5s
# These settings below are reloadable by doing /sab reload
serverNames:
# "server" (key) must not contain UPPERCASE character.
server: FriendlyServerName
defaultReasons:
# valid types: ban, temp_ban, ip_ban, temp_ip_ban, mute, temp_mute, ip_mute, temp_ip_mute, warning, caution, kick, note
# invalid types are ignored
ban:
# <server/group/global>: reasons list
global:
- "ban reason (global) 1"
- "ban reason (global) 2"
lobby:
- "ban reason (lobby) 1"
- "ban reason (lobby) 2"
# a player wouldn't be able to bypass with eg /minecraft:tell
blockedCommandsWhenMuted:
# server: Array<String>
# "global" would affect all servers
global:
- tell
- r
- me
life:
- rpc
- me
banOnWarning:
# if warning count hits 3, 4, 5..., the player would be banned with specified reason
# this feature will be disabled if you set this value to <= 0
threshold: 3
time: "1mo"
# Available variables: %PREFIX%, %COUNT& (current warnings count), %TIME% (above), %ORIGINAL_REASON% (reason used for /warn)
reason: "You've got %COUNT% warnings and you've been banned for %TIME%. (Original reason: %ORIGINAL_REASON%)"
customBannedMessage:
# usually configured via messages.yml, but you can set the message per server here
# key = server
# value = message
rpg:
- "&cA player has been deleted from the server."
# Discord webhook URLs
# If you don't need this feature, simply uncomment the line below.
#webhookURLs: { __fallback__: {} }
# and comment out the lines below.
webhookURLs:
__fallback__:
default: "https://discord.com/api/webhooks/123456/secret"
server1:
default: "https://discord.com/api/webhooks/123456/secret"
global:
default: "https://discord.com/api/webhooks/123456/secret"
ban: "https://discord.com/api/webhooks/789012/secret"
Non-exhaustive list of permissions
We recommend using LuckPerms for permission management.
sab.command.spicyazisabansab.command.spicyazisaban.creategroupsab.command.spicyazisaban.deletegroupsab.command.spicyazisaban.groupsab.command.spicyazisaban.infosab.command.spicyazisaban.debugsab.command.spicyazisaban.reloadsab.command.spicyazisaban.deletepunishmenthistorysab.command.spicyazisaban.deletepunishmentsab.command.spicyazisaban.linksab.command.spicyazisaban.unlinksab.checksab.historysab.seensab.banlistsab.proofssab.delproofsab.addproofsab.changereasonsab.unbansab.unmutesab.unpunishsab.punish.globalsab.punish.group.<groupName>sab.punish.server.<serverName>sab.ban.permsab.ban.tempsab.ipban.permsab.ipban.tempsab.mute.permsab.mute.tempsab.ipmute.permsab.ipmute.tempsab.warningsab.cautionsab.kicksab.notesab.notify.bansab.notify.tempbansab.notify.ipbansab.notify.tempipbansab.notify.mutesab.notify.tempmutesab.notify.ipmutesab.notify.tempipmutesab.notify.warnsab.notify.cautionsab.notify.kicksab.notify.notesab.exempt.mutesab.exempt.temp_mutesab.exempt.ip_mutesab.exempt.temp_ip_mute
?Developer API
遗憾的是,SpicyAzisaBan 本身并未为开发者提供有用的 API。(存在许多内部 API,但不打算供其他插件使用。) 如果您确实依赖了内部 API,请注意它可能会在未经通知的情况下发生变化。
如果您需要从后端 Spigot/Paper 服务器自动化处罚系统(但不包括解除处罚),您可以使用 AziPluginMessaging 提供的 API。 这是我们的一款内部插件,但我们为希望使用它的开发者提供了该 API。 您需要在后端(Spigot/Paper)服务器和代理(Velocity)服务器上安装该插件。
您可以在 PunishCommand.java 中查看使用该 API 的示例。
?支持
可通过我们的 Discord 服务器 获得支持。
?许可证
本项目采用 GNU General Public License v3.0 许可。
你是这个资源的作者?登录后可认领此资源。
相似资源
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
ExyliaPlugins 的库。
通过对话框或铁砧界面帮助你的 Anthme
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧