• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

“AdvancedBan”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
介绍
配置: 先翻译一部分
第138行: 第138行:
 
Config.yml: (翻译中)
 
Config.yml: (翻译中)
  
# AdvancedBan v2 - Coded by Leoko
+
# AdvancedBan v2 - Leoko 编写
# For each setting, there is a small description.
+
# 每项设置都有一段描述说明.
# Please read each description carefully before changing anything.
+
# 在更改任何字段前请认真阅读每段描述.
# For more information visit: https://www.spigotmc.org/resources/advancedban.8695/
+
# 了解更多?请访问: https://www.spigotmc.org/resources/advancedban.8695/
# Do you want your own Plugin or Website? Check out our Dev-Page: http://dev.skamps.eu
+
# 需要定制插件或网站?访问我们的开发页面: http://dev.skamps.eu
  
# If set to false all bans will be saved locally in a HSQLDB-Database
+
# 如果设置为 false 所有封禁都会被本地存储在一个HSQLDB数据库内
 
UseMySQL: false
 
UseMySQL: false
  
# Set to false if you want to have only short messages in the console
+
# 如果你只想在服务器后台看到简短的插件启用/禁用信息,请设置为 false
# On startup and on the shutdown.
 
 
DetailedEnableMessage: true
 
DetailedEnableMessage: true
 
DetailedDisableMessage: true
 
DetailedDisableMessage: true
  
# This will be the default reason to be displayed if none is given
+
# 如果没有指定,那么这就是执行操作时的默认惩罚原因
 
DefaultReason: "none"
 
DefaultReason: "none"
  
# Change this if your server has a different time that your users.
+
# 如果服务器时间与玩家不同,可以更改此项以调整
# e.g.: ServerTime: 16:43 | Your Time: 13:43 | TimeDiff has to be set to -3
+
# 如 服务器时间: 16:43 | 你的时间: 13:43 | TimeDiff值应改为 -3
# You can check the server time with /systemPrefs
+
# 你可以使用 /systemPrefs 指令来查看服务器时间
 
TimeDiff: 0
 
TimeDiff: 0
  
# This commands will be disabled for muted players
+
# 这些指令会对被禁言的玩家显示
# A player wouldn't be able to bypass with eg "/minecraft:me"
+
# 被禁言的玩家无法使用类似 /minecraft:me 等指令来绕过禁言发出消息
 
MuteCommands:
 
MuteCommands:
 
- 'me'
 
- 'me'
第189行: 第188行:
 
- 'ehelpop'
 
- 'ehelpop'
  
# These players will not be able to get punished in any way
+
# 惩罚操作不会对这些玩家生效(包括离线玩家)
# this also works if the player is offline
 
 
ExemptPlayers:
 
ExemptPlayers:
 
- 'Leoko'
 
- 'Leoko'
第197行: 第195行:
 
- 'ItzSomebody'
 
- 'ItzSomebody'
  
# The date-format which will be used for the %DATE% variable
+
# 调用 %DATE% 变量时使用的日期格式
 
DateFormat: "dd.MM.yyyy-HH:mm"
 
DateFormat: "dd.MM.yyyy-HH:mm"
  
# This is useful for bungeecord servers or server with permission systems which do not support *-Perms
+
# 此选项对 bungeecord 或不支持 *-泛权限的服务器很有用
# So if you enable this you can use ab.all instead of ab.* or ab.ban.all instead of ab.ban.*
+
# 设置为 true 后你可以使用 ab.all 权限节点以替代 ab.* ab.ban.all 替代 ab.ban.*
# This does not work with negative permissions! e.g. -ab.all would not block all commands for that user.
+
# 此项对负权限无效! -ab.all 并不能禁止用户使用ab权限
 
EnableAllPermissionNodes: false
 
EnableAllPermissionNodes: false
  
# If you use external REST-APIs they will have to respond in JSON
+
# 如果你在使用外部 REST-API 那么他们会以 JSON 形式回应
# The given APIs will only be used for NAME -> UUID
+
# 以下 API 只对 NAME -> UUID 有效
# For UUID -> NAME will either use the official MojangAPI or the InternFetcher
+
# UUID -> NAME 会调用官方 MojangAPI InternFetcher
# To check if you can use the intern fetcher do /systemPerfs and compare your uuid
+
# 想知道是否可以使用 intern fetcher 请执行 /systemPerfs 指令并将你的 UUID 与 https://namemc.com 上的 UUID 对比
#  to the one you can see online on http://NamesMC.com
+
# 如果值相同,我们建议你使用 InternFetcher
#   if they are similar we recommend using the InternFetcher
 
 
UUID-Fetcher:
 
UUID-Fetcher:
 
   # If dynamic it set to true it will override the 'enabled' and 'intern' settings
 
   # If dynamic it set to true it will override the 'enabled' and 'intern' settings

2022年8月2日 (二) 17:54的版本

AdvancedBan
外文名AdvancedBan
最新版本V2.3.0
源地址https://www.spigotmc.org/resources/advancedban.8695/

综述

介绍

  • AdvancedBan 是一个集合了警告、临时警告、禁言、临时禁言、封禁、临时封禁、IP封禁、临时IP封禁 和踢出功能的多合一惩罚系统。
  • 本插件提供玩家历史以供查阅玩家的被惩罚记录,同时本插件有可配置的时间&消息布局以实现根据特定原因自动计算和增加惩罚时间的操作。
  • AdvancedBan 还提供了一个完整的消息文件,因此您可以更改和翻译所有消息和一个包含许多有用设置的详细配置文件。
  • AdvancedBan 支持在 BungeeCord 和 Bukkit/Spigot 上运行,同时它支持 MySQL 和本地嵌入式数据库以提供高性能。

本插件由 Leoko开发

指令

[需要] <可选> | = 或 -s = 静默惩罚(不通知他人)

/kick <-s> [玩家] <原因 | @布局> 踢一名玩家

/ban /mute /warn /note <-s> [玩家] <原因 | @布局> 禁止/禁言/警告玩家/向玩家添加原因

/banip <-s> [玩家/IP] <原因 | @布局> 禁止玩家的IP。 如果您输入名称,它将使用缓存的 IP

/tempban /tempmute /tempwarn <-s> [玩家] [Xmo|Xd|Xh|Xm|Xs|#TIMELAYOUT] <原因 | @布局> 临时禁止/静音/警告玩家给定时间或自动时间计算的时间布局

/tempipban <-s> [玩家/IP] [Xmo|Xd|Xh|Xm|Xs|#TIMELAYOUT] <原因 | @布局> 临时IPban 一个给定时间或具有自动时间计算的时间布局的玩家 别名:/tipban

/change-reason [ID] [新原因] 通过id更改处罚原因

/change-reason [禁令/禁言] [玩家] [新理由] 更改玩家处罚的原因

/unban /unmute [玩家] 解禁令/解禁言玩家

/unwarn /unnote [ID] 删除警告/删除注释

/unwarn /unnote clear [玩家] 删除玩家的所有警告/注释

/unpunish [ID] 删除惩罚

/warns /notes <玩家> 查看您自己或玩家的警告/注意事项。

/check [玩家] 获取玩家状态:UUID/IP/Country/Ban-Status/Mute-Status/Warn-Count/Note-Count

/banlist <页面> 查看所有当前有效的惩罚

/history [玩家] <页面> 查看所有当前有效的惩罚 使用命令 - ab.history

/advancedban reload 重载插件

/advancedban help 显示advancedban的帮助

/systemprefs 显示一些对配置有用的系统信息

权限

ab.kick.use - /kick 踢出玩家 ab.kick.exempt - Immune to kicking 免疫被踢 ab.notify.kick - Receives notification 接收kick通知

ab.ban.perma - /ban 封禁 ab.ban.temp - /tempban 临时封禁 ab.ban.undo - /unban 解除封禁 ab.ban.exempt - Immune to ban 免疫封禁 ab.notify.ban - Receives notification 接收封禁通知 ab.undoNotify.ban - Receives notification when someone gets unbanned 当有人被解禁时收到通知

ab.notify.tempban - Receives notification 接收临时禁令通知

ab.ipban.perma - /ipban IP封禁 ab.ipban.temp - /tempipban 临时IP封禁 ab.notify.ipban - Receives notification 接收临时IP封禁通知

ab.tempipban.exempt - Immune to tempipban 对临时IP封禁免疫 ab.notify.tempipban - Receives notification 接收临时IP封禁通知

ab.mute.perma - /mute 禁言 ab.mute.temp - /tempmute 临时禁言 ab.mute.undo - /unmute 解除禁言 ab.mute.exempt - Immune to mute 免疫禁言 ab.notify.mute - Receives notification 接收禁言通知 ab.undoNotify.mute - Receives notification when someone gets unmuted 当有人取消禁言时收到通知

ab.notify.tempmute - Receives notification 接收临时禁言通知

ab.warn.perma - /warn 警告 ab.warn.temp - /tempwarn 临时警告 ab.warn.undo - /unwarn 解除警告 ab.warn.exempt - Immune to warn 免疫警告 ab.notify.warn - Receives notification 接收警告通知 ab.undoNotify.warn - Receives notification when someone gets unwarned 当没有人被警告是通知

ab.notify.tempwarn - Receives notification 接收临时警告通知

ab.note.use - /note ab.note.undo - /unnote ab.note.exempt - Immune to receiving notes ab.notify.note - Receives notification ab.undoNotify.note - Receives notification when someone gets unnoted

ab.all.undo - /unpunish

ab.warns.own - /warns ab.warns.other - /warns PLAYER

ab.notes.own - /notes ab.notes.other - /notes PLAYER

ab.check - /check ab.check.ip - Also shows IP

ab.changeReason - /change-reason ab.banlist - /banlist ab.history - /history ab.reload - /advancedban reload ab.help - /advancedban help ab.systemprefs - /systemprefs

配置

Config.yml: (翻译中)

  1. AdvancedBan v2 - 由 Leoko 编写
  2. 每项设置都有一段描述说明.
  3. 在更改任何字段前请认真阅读每段描述.
  4. 了解更多?请访问: https://www.spigotmc.org/resources/advancedban.8695/
  5. 需要定制插件或网站?访问我们的开发页面: http://dev.skamps.eu
  1. 如果设置为 false 所有封禁都会被本地存储在一个HSQLDB数据库内

UseMySQL: false

  1. 如果你只想在服务器后台看到简短的插件启用/禁用信息,请设置为 false

DetailedEnableMessage: true DetailedDisableMessage: true

  1. 如果没有指定,那么这就是执行操作时的默认惩罚原因

DefaultReason: "none"

  1. 如果服务器时间与玩家不同,可以更改此项以调整
  2. 如 服务器时间: 16:43 | 你的时间: 13:43 | TimeDiff值应改为 -3
  3. 你可以使用 /systemPrefs 指令来查看服务器时间

TimeDiff: 0

  1. 这些指令会对被禁言的玩家显示
  2. 被禁言的玩家无法使用类似 /minecraft:me 等指令来绕过禁言发出消息

MuteCommands: - 'me' - 'say' - 'action' - 'eaction' - 'describe' - 'edescribe' - 'eme' - 'w' - 'm' - 'pm' - 'whisper' - 'ewhisper' - 'emsg' - 'msg' - 'etell' - 'tell' - 'er' - 'r' - 'reply' - 'ereply' - 'ac' - 'eac' - 'amsg' - 'eamsg' - 'ehelpop'

  1. 惩罚操作不会对这些玩家生效(包括离线玩家)

ExemptPlayers: - 'Leoko' - 'md5' - 'dutchy1001' - 'ItzSomebody'

  1. 调用 %DATE% 变量时使用的日期格式

DateFormat: "dd.MM.yyyy-HH:mm"

  1. 此选项对 bungeecord 或不支持 *-泛权限的服务器很有用
  2. 设置为 true 后你可以使用 ab.all 权限节点以替代 ab.* 或 ab.ban.all 替代 ab.ban.*
  3. 此项对负权限无效! 如 -ab.all 并不能禁止用户使用ab权限

EnableAllPermissionNodes: false

  1. 如果你在使用外部 REST-API 那么他们会以 JSON 形式回应
  2. 以下 API 只对 NAME -> UUID 有效
  3. 而 UUID -> NAME 会调用官方 MojangAPI 或 InternFetcher
  4. 想知道是否可以使用 intern fetcher 请执行 /systemPerfs 指令并将你的 UUID 与 https://namemc.com 上的 UUID 对比
  5. 如果值相同,我们建议你使用 InternFetcher

UUID-Fetcher:

 # If dynamic it set to true it will override the 'enabled' and 'intern' settings
 # and automatically detect the best possible uuid fetcher settings for your server.
 # Our recommendation: don't set dynamic to false if you don't have any problems.
 Dynamic: true
 Enabled: true
 Intern: false
 REST-API:
   URL: "https://api.mojang.com/users/profiles/minecraft/%NAME%?at=%TIMESTAMP%"
   Key: "id"
 BackUp-API:
   URL: "https://us.mc-api.net/v3/uuid/%NAME%"
   Key: "uuid"
  1. These are the commands that will be performed on warns
  2. If you skip a number the command from before will be performed
  3. You can also use non-AdvancedBan-Commands like 'broadcast' or 'clear %PLAYER%
  4. Variables: %PLAYER%, %REASON%, %COUNT%

WarnActions:

 3: "kick %PLAYER% &c&oYou have received your 3rd warning!"
 4: "tempban %PLAYER% 30m &c&oYou have received your 4th warning!"
 5: "tempban %PLAYER% 5h &c&oYou have received your 5th warning!"
 6: "tempban %PLAYER% 7d &c&oYou have received your 6th warning!"
 7: "tempban %PLAYER% 1mo &c&oYou have received your %COUNT%th warning!"
 10: "ban %PLAYER% &c&oYou have received your 10th warning!"
  1. Here you can create permission-nodes for max-punishment-duration.
  2. The permission "ab.tempban.dur.1" would allow the player to ban max. for 600sec = 10min
  3. The permission "ab.tempwarn.dur.2" would allow the player to warn max. for 3600sec = 1h
  4. You can only create up to 10 perms. The perms can be overridden with "ab.COMMAND.dur.max"

TempPerms:

 1: 600
 2: 3600
 3: 43200