DiscordPlugin 是一款轻量、简洁且完全可定制的 Minecraft 插件,旨在无缝地将你的社区 Discord 服务器链接分享给玩家。
主要功能:
互动消息:玩家只需输入 /discord(或 /dc),即可收到一条干净的可点击文本组件,直接打开你的邀请链接。
游戏内管理:管理员可以使用 /discord link <url> 即时更新 Discord 链接,无需访问文件或重启服务器。
自动广播:配置一个周期计时器,按照设定的时间间隔向所有在线玩家自动广播 Discord 邀请消息。
加入通知:当玩家首次加入或每次连接时,自动发送邀请链接。
安全性:管理员命令严格限制为操作者或拥有专用权限的玩家。
命令与权限:
/discord — 显示互动的 Discord 链接(所有人可用)
/discord link <url> — 更新邀请链接(权限:discordplugin.admin / OP)
/discord reload — 重新加载插件配置(权限:discordplugin.admin / OP)
/discord broadcast — 触发立即全服广播(权限:discordplugin.admin / OP)
配置 (config.yml):
# 你的 Discord 服务器邀请 URL
discord-url: "https://discord.gg/example"
first-join:
enabled: true
every-join:
enabled: false
broadcast:
enabled: true
interval-minutes: 60
messages:
header: "&8&m----------------------------------------"
title: "&5&lDISCORD &7» 加入我们的社区!"
button-text: "&d&l[点击此处加入]"
button-hover: "&e点击以打开 Discord 链接"
footer: "&8&m----------------------------------------"

DiscordPlugin is a lightweight, clean, and fully customizable Minecraft plugin designed to seamlessly share your community Discord server link with your players.
Main Features:
Interactive Messages: Players simply type /discord (or /dc) to receive a clean, clickable text component that opens your invitation link directly.
In-Game Management: Administrators can update the Discord link instantly using /discord link <url> without needing file access or server restarts.
Auto-Broadcasts: Configure a periodic timer to automatically broadcast the Discord invite message to all online players at a defined interval.
Join Notifications: Automatically send the invite when a player joins for the first time or on every connection.
Security: Admin commands are strictly restricted to operators or dedicated permissions.
Commands and Permissions:
/discord — Displays the interactive Discord link (Accessible to everyone)
/discord link <url> — Updates the invitation link (Permission: discordplugin.admin / OP)
/discord reload — Reloads the plugin configuration (Permission: discordplugin.admin / OP)
/discord broadcast — Triggers an immediate server-wide broadcast (Permission: discordplugin.admin / OP)
Configuration (config.yml):
# Your Discord server invite URL
discord-url: "https://discord.gg/example"
first-join:
enabled: true
every-join:
enabled: false
broadcast:
enabled: true
interval-minutes: 60
messages:
header: "&8&m----------------------------------------"
title: "&5&lDISCORD &7» Join our community!"
button-text: "&d&l[CLICK HERE TO JOIN]"
button-hover: "&eClick to open the Discord link"
footer: "&8&m----------------------------------------"

评论 0
登录后参与评分
还没有评论,来抢沙发吧