SpicyAzisaBan

插件

· 作者 acrylic-style

一个全能的惩罚系统

0 本站下载 0 关注 更新于 1 年前

最新 2.0.0-dev-8d2b31d · 1.21.4 · Velocity

一键开服(送7天)

?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

  1. 从 Modrinth 下载插件并将其放入服务器的 plugins 文件夹中。
  2. 启动服务器一次以生成配置文件。(或者你也可以手动创建文件)
  3. 在 plugins/SpicyAzisaBan/config.yml 中配置插件。
  4. 重启服务器。
  5. 执行 /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.spicyazisaban
  • sab.command.spicyazisaban.creategroup
  • sab.command.spicyazisaban.deletegroup
  • sab.command.spicyazisaban.group
  • sab.command.spicyazisaban.info
  • sab.command.spicyazisaban.debug
  • sab.command.spicyazisaban.reload
  • sab.command.spicyazisaban.deletepunishmenthistory
  • sab.command.spicyazisaban.deletepunishment
  • sab.command.spicyazisaban.link
  • sab.command.spicyazisaban.unlink
  • sab.check
  • sab.history
  • sab.seen
  • sab.banlist
  • sab.proofs
  • sab.delproof
  • sab.addproof
  • sab.changereason
  • sab.unban
  • sab.unmute
  • sab.unpunish
  • sab.punish.global
  • sab.punish.group.<groupName>
  • sab.punish.server.<serverName>
  • sab.ban.perm
  • sab.ban.temp
  • sab.ipban.perm
  • sab.ipban.temp
  • sab.mute.perm
  • sab.mute.temp
  • sab.ipmute.perm
  • sab.ipmute.temp
  • sab.warning
  • sab.caution
  • sab.kick
  • sab.note
  • sab.notify.ban
  • sab.notify.tempban
  • sab.notify.ipban
  • sab.notify.tempipban
  • sab.notify.mute
  • sab.notify.tempmute
  • sab.notify.ipmute
  • sab.notify.tempipmute
  • sab.notify.warn
  • sab.notify.caution
  • sab.notify.kick
  • sab.notify.note
  • sab.exempt.mute
  • sab.exempt.temp_mute
  • sab.exempt.ip_mute
  • sab.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 许可。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源