| ⚠️ 警告 ⚠️ |
|---|
| 该项目仍在开发中。可能仍然存在漏洞/崩溃问题!(请在 github.com 上报告) 如果您正在升级到新版本,您需要自行升级 language.yml 和 config.yml(data.yml 会自动更新)。 |
功能
- 兼容 Velocity 代理和 Fabric 服务器
- 白名单功能:允许用户通过 Discord 提交白名单申请
- (取消)封禁功能:惩罚那些令人讨厌的人(多次踢出、永久封禁或指定时长封禁)
- 高度可配置(参见 config.yaml 和 language.yml 以了解所有可自定义项)
- 维护模式:除配置文件中指定的用户外,禁止所有人加入服务器,并禁用所有事件消息推送
- 服务器启动和停止时发送自定义 Discord 消息
- 玩家连接和断开连接时发送自定义 Discord 消息
- 玩家在 Minecraft 中聊天时发送自定义 Discord 消息
- 用户在 Discord 中发送消息时发送自定义 Minecraft 消息
配置文件:
config.yml 版本 0.8.0
请参阅 github.com 获取最新版本
# !使用此插件前必须先设置此文件!
# 一旦启用某项功能,再次禁用它可能会导致未定义的行为
# 如果您确实想禁用某项功能,但这会破坏您的白名单/安装,您应该删除 data.yml 文件
# 请参阅 https://modrinth.com/plugin/discordio 了解如何获取令牌
botToken: "在此插入您的令牌,请参阅 https://modrinth.com/plugin/discordio 了解如何获取令牌"
# Guild ID 是添加命令所必需的
guildId: "在此插入您的 guild id(即您的 discord 服务器的 ID)"
# 游戏内事件的 Discord 消息
events:
# 服务器启动时的消息
onStart:
enabled: false
channel: "id..."
# 服务器停止时的消息
onStop:
enabled: false
channel: "id..."
# 玩家加入时的消息
onJoin:
enabled: false
channel: "id..."
# 玩家离开时的消息
onLeave:
enabled: false
channel: "id..."
# 转发 Discord/Minecraft 消息
onMessage:
enabled: false
minecraftToDiscord: true
discordToMinecraft: true
# 取消注释适用于您服务器类型的选项:
# 对于 Fabric:
# channels:
# fabric: "id..."
# 对于 Velocity
# (服务器名称是您在 velocity.toml 文件中配置的服务器名称)
# 如果启用了 discordToMinecraft,请勿共享 discord 频道
# channels:
# server1: "id..."
# server2: "id..."
# 如果启用,将使用 Mojang 注册的 UUID 进行验证
# !服务器必须处于在线模式才能使用此功能!
# 在有人被列入白名单后,您目前无法更改此设置,因此请慎重选择
# 如果您确实想更改此设置,请删除 data.yml 文件(这将移除所有已列入白名单的玩家,他们需要重新被列入白名单)
useUUID: true
# 如果启用,每个 Discord 用户只允许关联一个 Minecraft 账户
# 在有人被列入白名单后,您目前无法更改此设置,因此请慎重选择
# 如果您确实想更改此设置,请删除 data.yml 文件(这将移除所有已列入白名单的玩家,他们需要重新被列入白名单)
connectAccounts: true
# 如果设置为 false,此插件将在关闭时删除所有可交互的消息,然后在启动时重新发送它们
# 如果设置为 true,此插件将在关闭时禁用所有可交互的消息,然后在启动时重新启用它们(这样服务器启动时就不会产生烦人的 ping 提醒)
disableOnShutdown: true
# 将白名单、封禁和取消封禁请求消息合并为单个请求消息
squashedRequest:
enabled: false
channel: "id..."
# 通过 Discord 进行白名单管理
whitelist:
enabled: false
# 此插件是否为被加入白名单的用户分配特殊角色
giveRoleOnWhitelist: false
# 当玩家被列入白名单时给予的角色(仅在 giveRoleOnWhitelist=true 时生效)
# 启用开发者选项以从 discord 服务器设置中轻松获取角色 ID:
whitelistedRoleID: ""
onAccept:
enabled: true
channel: "id..."
onDeny:
enabled: true
channel: "id..."
request:
enabled: true
channel: "id..."
checkRoles: false
allowedRoles: []
voting:
# 如果禁用,请求将直接导致立即加入白名单
enabled: true
channel: "id.."
checkRoles: false
allowedRoles: []
acceptVotes: "50%"
denyVotes: "1"
# 通过 Discord 进行封禁管理
banning:
enabled: false
# 此插件是否为被封禁的用户分配特殊角色
giveRoleOnBan: false
# 当玩家被封禁时给予的角色(仅在 giveRoleOnBan=true 时生效)
# 启用开发者选项以从 discord 服务器设置中轻松获取角色 ID:
bannedRoleID: ""
onAccept:
enabled: true
channel: "id..."
onDeny:
enabled: true
channel: "id..."
request:
enabled: true
channel: "id..."
checkRoles: false
allowedRoles: []
# 选择一种方式让用户指定要封禁的目标:
# - "discord" 选择他们想要封禁的 Discord 用户名(如果 connectAccounts=false,则不可用)
# - "minecraft" 选择他们想要封禁的 Minecraft 用户名
identifier: "discord"
punishment:
# 如果禁用,请求将作为永久封禁请求继续进入原因选择阶段
enabled: true
channel: "id..."
checkRoles: false
allowedRoles: []
acceptVotes: "50%"
denyVotes: "1"
punishments:
# 如果不保留“无”处罚选项,管理员将无法拒绝封禁请求
"None":
type: None
"Permanent ban":
type: PermBan
"5m ban":
type: Ban
duration: 300
"1h ban":
type: Ban
duration: 3600
"2h ban":
type: Ban
duration: 7200
"1d ban":
type: Ban
duration: 86400
"kick 1x":
type: Kick
duration: 1
"kick 3x":
type: Kick
duration: 3
"No unban 2h":
type: NoUnban
duration: 7200
reason:
# 如果禁用,请求将保留原始请求的原因
enabled: true
channel: "id..."
checkRoles: false
allowedRoles: []
acceptVotes: "50%"
denyVotes: "1"
# 通过 Discord 解除封禁
unban:
enabled: false
onAccept:
enabled: true
channel: "id..."
onDeny:
enabled: true
channel: "id..."
request:
enabled: true
channel: "id..."
checkRoles: false
allowedRoles: []
voting:
# 如果禁用,请求将直接执行解除封禁
enabled: true
channel: "id.."
checkRoles: false
allowedRoles: []
acceptVotes: "50%"
denyVotes: "1"
maintenance:
# 禁用事件并拒绝所有不在成员列表中的玩家加入
enabled: false
# 从配置中启用维护模式:
inMaintenance: false
# 允许在维护期间加入的玩家
# 如果 useUUID=true,请使用 UUID;否则使用玩家名称
# 这不会覆盖白名单和封禁功能,您仍需被列入白名单才能进入
# UUID 应不带连字符,例如:123456789abcdefghijklmni12345678
crew: ["player1", "player2"]
# 通过 Discord 启用维护模式的命令
command:
enabled: false
checkChannel: false
allowedChannels: ["id..."]
checkRoles: false
allowedRoles: []
# 开始消息
onStart:
enabled: false
channel: "id..."
# 结束消息
onStop:
enabled: false
channel: "id..."
# 一个用于查看某人是否在白名单中(以及是否有处罚记录)的 Discord 命令
infoCommand:
enabled: false
checkChannel: false
allowedChannels: ["id..."]
checkRoles: false
allowedRoles: []
language.yml version 0.8.0
有关最新版本,请参阅 github.com
embeds:
#
# *************************************************************************
# Events *
# *************************************************************************
#
events:
embeds:
onStart:
title: "-------------[Online]-------------"
description: ":green_circle: **Proxy** is online!"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "GREEN"
onStop:
title: "-------------[Offline]-------------"
description: ":no_entry: **Proxy** is offline!"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
onJoin:
title: "-------------[Connected]-------------"
description: "**${PLAYER_NAME}** joined the server!"
imageUrl: "https://minotar.net/helm/${PLAYER_KEY}/240.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "GREEN"
onLeave:
title: "-------------[Disconnected]-------------"
description: "**${PLAYER_NAME}** left the server!"
imageUrl: "https://minotar.net/helm/${PLAYER_KEY}/240.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
onMessage:
description: "[${PLAYER_NAME}] ${MESSAGE}"
#
# *************************************************************************
# Squashed request *
# *************************************************************************
#
squashedRequest:
embeds:
request:
title: "Do you want to request something?"
description: "Click the buttons below to get **whitelisted**, request a **ban** or request an **unban**"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
actions:
whitelist:
label: "Request whitelist"
emoji: "U+2705"
ban:
label: "Request ban"
emoji: "U+2705"
unban:
label: "Request unban"
emoji: "U+2705"
color: "blue"
#
# *************************************************************************
# Whitelisting *
# *************************************************************************
#
whitelist:
embeds:
alreadyWhitelisted:
title: "Sorry, you already made a whitelist request."
description: "You are either already whitelisted, or you made a request previously that is being approved. Please wait patiently"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "BLUE"
request:
title: "申请加入白名单"
description: "你也想被加入白名单吗?\n点击下方按钮以申请加入 Minecraft 服务器!"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
actions:
button:
label: "申请白名单"
emoji: "U+2705"
color: "BLUE"
notAllowed:
title: "你无权申请加入白名单(你没有正确的 Discord 角色)"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
requestConfirm:
title: "是你本人吗?"
description: "请确认下方的皮肤是否属于你的账号 **${PLAYER_NAME}**"
imageUrl: "https://minotar.net/body/${PLAYER_NAME}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
actions:
confirm:
label: "是我本人"
emoji: "U+2705"
cancel:
label: "取消"
emoji: "U+26D4"
color: "BLUE"
notFound:
title: "未找到你的玩家信息"
description: "在 Mojang 服务器上未找到你的玩家信息"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
requestCanceled:
title: "请求已取消"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
requestConfirmed:
title: "你的请求将由管理员审核"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
voting:
title: "白名单申请"
description: "Discord 用户 <@${DISCORD_UUID}> 希望将其 Minecraft 账号 **${PLAYER_NAME}** 加入白名单。\n**${ACCEPT_VOTES}** 票赞成,**${DENY_VOTES}** 票反对。(需要 ${MIN_ACCEPT_VOTES} 票才能批准请求,需要 ${MIN_DENY_VOTES} 票才能拒绝请求)"
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
actions:
accept:
label: "批准"
emoji: "U+2705"
deny:
label: "拒绝"
emoji: "U+26D4"
color: "GREEN"
votingDenied:
title: "白名单申请 - 已拒绝"
description: "用户 <@${DISCORD_UUID}> 关于将 **${PLAYER_NAME}** 加入白名单的请求已被拒绝"
imageUrl: "https://minotar.net/helm/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
votingAccepted:
title: "白名单申请 - 已批准"
description: "用户 <@${DISCORD_UUID}> 关于将 **${PLAYER_NAME}** 加入白名单的请求已被批准"
imageUrl: "https://minotar.net/helm/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "GREEN"
votingNotAllowed:
title: "你无权投票(你没有正确的 Discord 角色)"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
publicDenied:
title: "白名单申请被拒"
description: "**${PLAYER_NAME}** 未被加入白名单\n(由 <@${DISCORD_UUID}> 申请)"
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
publicAccepted:
title: "白名单申请已获通过"
description: "**${PLAYER_NAME}** 已被加入白名单\n(由 <@${DISCORD_UUID}> 申请)"
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "GREEN"
#
# *************************************************************************
# Banning *
# *************************************************************************
#
banning:
embeds:
request:
title: "申请处罚"
description: "有人很烦人吗?\n点击下方按钮以申请封禁"
actions:
button:
label: "申请封禁"
emoji: "U+2705"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
alreadyRequested:
title: "抱歉,你已经提交过封禁申请了。"
description: "你之前提交的封禁申请正在审批中。请耐心等待"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "BLUE"
playerNotFound:
title: "该 Discord 用户未注册"
description: "该 Discord 用户没有绑定 Minecraft 账号。请求将被忽略"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "BLUE"
requestNotAllowed:
title: "你无权申请封禁(你没有正确的 Discord 角色)"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
requestConfirm:
title: "你要封禁此用户吗?"
description: "1. 你是否要申请封禁 **${PLAYER_NAME}**,理由如下:'*${REASON}*'。\n2. 请确认下方的皮肤是否属于账号 **${PLAYER_NAME}**"
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
actions:
confirm:
label: "是他本人"
emoji: "U+2705"
cancel:
label: "取消"
emoji: "U+26D4"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
requestNotFound:
title: "未找到该用户"
description: "未找到与该 Discord 用户关联的账号"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
requestCanceled:
title: "请求已取消"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
requestConfirmed:
title: "您的请求将由管理员审核"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
punishmentPicker:
title: "封禁请求 - 处罚"
description: "Discord 用户 <@${REQUESTER_UUID}> 希望将 Minecraft 账号 **${PLAYER_NAME}** 封禁,原因如下:\n\"${REASON}\""
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
actions:
punishment:
label: "处罚"
color: "ORANGE"
punishmentVoting:
title: "封禁请求 - 处罚"
description: "Discord 用户 <@${REQUESTER_UUID}> 希望将 Minecraft 账号 **${PLAYER_NAME}** 封禁,原因如下:\n\"${REASON}\"。\n <@${ADMIN_UUID}> 建议采取 **${PUNISHMENT}** \n**${ACCEPT_VOTES}** 票赞成,**${DENY_VOTES}** 票反对。 (需要 ${MIN_ACCEPT_VOTES} 票通过,需要 ${MIN_DENY_VOTES} 票拒绝该请求)"
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
actions:
accept:
label: "接受"
emoji: "U+2705"
deny:
label: "拒绝"
emoji: "U+26D4"
color: "ORANGE"
punishmentDecided:
title: "封禁请求 - 处罚"
description: "**${PLAYER_NAME}** 将获得以下处罚:**${PUNISHMENT}**"
imageUrl: "https://minotar.net/helm/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "GREEN"
punishmentVotingNotAllowed:
title: "您无权投票(您没有正确的 Discord 角色)"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
reasonPicker:
title: "封禁请求 - 理由"
description: "Discord 用户 <@${REQUESTER_UUID}> 希望将 Minecraft 账号 **${PLAYER_NAME}** 处以 ${PUNISHMENT},原因为:\n\"${ORIGINAL_REASON}\"。此理由已被驳回,请指定新的理由?"
imageUrl: "https://minotar.net/helm/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
actions:
change:
label: "更改理由"
color: "ORANGE"
reasonFirstVote:
title: "封禁请求 - 理由"
description: "Discord 用户 <@${REQUESTER_UUID}> 希望将 Minecraft 账号 **${PLAYER_NAME}** 处以 ${PUNISHMENT},原因为:\n\"${REASON}\"。\n这是否是一个合理的**理由**?\n**${ACCEPT_VOTES}** 票赞成,**${DENY_VOTES}** 票反对。 (需要 ${MIN_ACCEPT_VOTES} 票通过,需要 ${MIN_DENY_VOTES} 票拒绝该请求)"
imageUrl: "https://minotar.net/helm/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
actions:
accept:
label: "接受"
emoji: "U+2705"
deny:
label: "拒绝"
emoji: "U+26D4"
color: "ORANGE"
reasonVoting:
title: "封禁请求 - 理由变更"
description: "Discord 用户 <@${REQUESTER_UUID}> 希望将 Minecraft 账号 **${PLAYER_NAME}** 处以 ${PUNISHMENT},原因为:\n\"${ORIGINAL_REASON}\"。\n\n <@${ADMIN_UUID}> 建议将理由更改为 \"${REASON}\" \n\n**${ACCEPT_VOTES}** 票赞成,**${DENY_VOTES}** 票反对。 (需要 ${MIN_ACCEPT_VOTES} 票通过,需要 ${MIN_DENY_VOTES} 票拒绝该请求)"
imageUrl: "https://minotar.net/helm/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
actions:
accept:
label: "接受"
emoji: "U+2705"
deny:
label: "拒绝"
emoji: "U+26D4"
color: "ORANGE"
reasonDecided:
title: "封禁请求 - 已通过"
description: "**${PLAYER_NAME}** 将获得以下处罚:**${PUNISHMENT}**。原因是 \"${REASON}\""
imageUrl: "https://minotar.net/helm/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "GREEN"
reasonVotingNotAllowed:
title: "您无权投票(您没有正确的 Discord 角色)"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
publicDenied:
title: "处罚被拒绝"
description: "**${PLAYER_NAME}** 未受到处罚\n(由 <@${REQUESTER_UUID}> 请求)"
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "GREEN"
publicAccepted:
title: "处罚已执行"
description: "**${PLAYER_NAME}** 因 '*${REASON}*' 受到了 *${PUNISHMENT}* \n(由 <@${REQUESTER_UUID}> 请求)"
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
#
# *************************************************************************
# Unbanning *
# *************************************************************************
#
unban:
embeds:
alreadyRequested:
title: "抱歉,您已经提交过解封请求。"
description: "您之前提交的封禁解除请求正在审批中。请耐心等待"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "BLUE"
notBanned:
title: "您未被封禁。"
description: "您未被封禁,因此无法申请解封。(真可怜)"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "BLUE"
playerNotFound:
title: "您尚未注册为 Minecraft 玩家"
description: "请先获取白名单权限,然后再尝试申请解封。该请求已被忽略。"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "BLUE"
request:
title: "申请解封"
description: "您想被解封吗?\n点击下方按钮以申请解封!"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
actions:
button:
label: "申请解封"
emoji: "U+2705"
color: "YELLOW"
notAllowed:
title: "您无权申请解封(您没有正确的 Discord 角色)"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
noUnbanPunishment:
title: "您无权申请解封(您受到的处罚不允许解封)"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
requestPlayerPicker:
title: "选择您要为其申请解封的玩家"
description: "使用下方的选择菜单来挑选一名玩家:"
actions:
minecraftUser:
label: "Minecraft 账号"
color: "BLUE"
requestConfirm:
title: "您确定要解封以下玩家吗?"
description: "1. 您是否要申请移除 **${PLAYER_NAME}** 的惩罚 **${PUNISHMENT_NAME}**,理由如下:'*${REASON}*'。\n2. 请检查下方的皮肤是否属于 **${PLAYER_NAME}** 这个账号"
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
actions:
confirm:
label: "是我本人"
emoji: "U+2705"
cancel:
label: "取消"
emoji: "U+26D4"
color: "BLUE"
requestCanceled:
title: "请求已取消"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
requestConfirmed:
title: "您的请求将由管理员审核"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
voting:
title: "解封请求"
description: "Discord 用户 <@${REQUESTER_UUID}> 希望移除其 Minecraft 账号 **${PLAYER_NAME}** 上的惩罚 **${PUNISHMENT_NAME}**。\n他给出的理由是:\n *${REASON}* \n\n**${ACCEPT_VOTES}** 票支持,**${DENY_VOTES}** 票反对。\n(需要 ${MIN_ACCEPT_VOTES} 票才能通过,需要 ${MIN_DENY_VOTES} 票才能否决该请求)"
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
actions:
accept:
label: "接受"
emoji: "U+2705"
deny:
label: "拒绝"
emoji: "U+26D4"
color: "YELLOW"
votingDenied:
title: "解封请求 - 已拒绝"
description: "用户 <@${REQUESTER_UUID}> 提出的移除 **${PLAYER_NAME}** 惩罚 **${PUNISHMENT_NAME}** 的请求已被拒绝"
imageUrl: "https://minotar.net/helm/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
votingAccepted:
title: "解封请求 - 已通过"
description: "用户 <@${REQUESTER_UUID}> 提出的移除 **${PLAYER_NAME}** 惩罚 **${PUNISHMENT_NAME}** 的请求已通过"
imageUrl: "https://minotar.net/helm/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "GREEN"
votingNotAllowed:
title: "您无权投票(您没有正确的 Discord 角色)"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
publicDenied:
title: "解封被拒"
description: "**${PLAYER_NAME}'s** 的惩罚 *${PUNISHMENT_NAME}* 未被移除。\n(由 <@${REQUESTER_UUID}> 发起请求)"
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "RED"
publicAccepted:
title: "解封通过"
description: "**${PLAYER_NAME}'s** 的惩罚 *${PUNISHMENT_NAME}* 已被移除。\n(由 <@${REQUESTER_UUID}> 发起请求)"
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "GREEN"
#
# *************************************************************************
# Maintenance *
# *************************************************************************
#
maintenance:
embeds:
onStart:
title: "------------[维护中]------------"
description: "抱歉,服务器正处于维护模式,您目前无法加入"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "YELLOW"
onStop:
title: "------------[维护中]------------"
description: "服务器已恢复在线,维护已结束。"
footer:
message: "${CURRENT_DATE} ${CURRENT_TIME}"
color: "GREEN"
notAllowed:
title: "抱歉,您无权使用此命令"
wrongChannel:
title: "抱歉,您不能在此频道中使用此命令"
incomplete:
title: "请指定机器人是启动还是停止维护模式"
color: "RED"
command:
title: "包在我身上,老板"
#
# *************************************************************************
# Info command *
# *************************************************************************
#
infoCommand:
embeds:
notAllowed:
title: "抱歉,你没有权限使用此命令"
wrongChannel:
title: "抱歉,你无法在此频道中使用此命令"
incomplete:
title: "请指定一个用户,命令参数不完整"
color: "RED"
notRegistered:
title: "该 Discord 用户未在服务器中注册"
description: "<@${DISCORD_UUID}> 没有白名单中的 Minecraft 账号"
color: "BLUE"
command:
title: "*${PLAYER_NAME}*"
description: "${PLAYER_NAME},由 <@${DISCORD_UUID}> 注册。\n 该玩家有以下处罚记录:\n"
imageUrl: "https://minotar.net/body/${PLAYER_KEY}/100.png"
# Extra is used to add a line to the description for every punishment:
extra: "- *${PUNISHMENT_NAME}* 直到 *${PUNISHMENT_UNTIL}*\n"
color: "BLUE"
#
# *************************************************************************
# Modals *
# *************************************************************************
#
modals:
whitelist:
modals:
request:
title: "白名单申请"
actions:
username:
label: "用户名"
placeholder: "Steve1234"
banning:
modals:
request:
title: "封禁申请"
actions:
discordUser:
label: "Discord 用户"
minecraftUser:
label: "Minecraft 账号"
reason:
label: "原因"
placeholder: "请给出合理的封禁理由"
reasonChange:
title: "更改原因"
actions:
reason:
label: "原因"
placeholder: "${ORIGINAL_REASON}"
value: "${ORIGINAL_REASON}"
unban:
modals:
request:
title: "解封申请"
actions:
punishment:
label: "处罚"
reason:
label: "原因"
placeholder: "请给出合理的解封理由"
#
# *************************************************************************
# Commands *
# *************************************************************************
#
commands:
maintenance:
name: "maintenance"
description: "用于开启或关闭维护模式的命令"
options:
startStop:
name: "start-stop"
description: "选择开启或关闭维护模式"
options: ["start", "stop"]
info:
name: "player-info"
description: "用于显示玩家信息的命令"
options:
subcommandMinecraft:
name: "minecraft"
description: "获取 Minecraft 玩家的信息"
subcommandDiscord:
name: "discord"
description: "获取 Discord 用户的信息"
minecraftUser:
name: "minecraft-user"
description: "你想查询信息的 Minecraft 用户"
discordUser:
name: "discord-user"
description: "你想查询信息的 Discord 用户"
Download
前往 modrinth.com 下载此插件
Setup
请参阅 discord.com/developers/docs/quick-start/getting-started 以获取更多信息。
- 启动你的(Fabric 或 Velocity)服务器,然后再次停止它
- 服务器会生成一个
mods文件夹或一个plugins文件夹,将对应你服务器类型的 jar 文件放入该文件夹中(前往 modrinth.com 下载) - 再次启动你的服务器,此模组会为你生成一个
config.yml文件,打开它(以下步骤将指导你进行配置) - 前往 Discord 开发者门户 discord.com/developers/applications
- 点击“New application”(新建应用)

- 选择一个名称并接受用户协议

- 使用侧边栏导航至 Bots(机器人)部分

- 点击 Reset Token(重置令牌)并点击 Confirm(确认)

- 复制你的机器人令牌(Bot Token),并将其粘贴到配置的
botToken字段中
- 同样在 Bots(机器人)部分,向下滚动以启用“Message content intent”(消息内容意图)网关意图

- 现在使用侧边栏导航至 Installation(安装)页面,并按如下方式配置:

- 复制上一屏幕中 Discord 提供的 URL 并访问它,你现在可以将机器人邀请到你希望机器人发送消息的服务器
现在我们想要设置功能,你可以使用以下教程来获取频道 ID: support.discord.com 然后你可以将你的频道 ID 复制到配置中你想要启用的功能里(如果你不想使用某个功能,请将其禁用!)
错误报告
如果你发现错误或异常行为,请在 GitHub 上提交问题 (github.com) 或发送邮件至 93196280+hidde2727@users.noreply.github.com
你是这个资源的作者?登录后可认领此资源。
相似资源
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
ExyliaPlugins 的库。
通过对话框或铁砧界面帮助你的 Anthme
自定义你的Minecraft头像!
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧