一款 Spigot/Paper 插件,用于集成 Discord 机器人以生成 Minecraft 玩家头像。
- Discord 集成 - 在 Discord 中使用
!av <username>命令生成玩家头像 - 高质量头像 - 通过 tabavatars.net API 生成半身像风格的 Minecraft 皮肤渲染图
- 冷却系统 - 可配置的冷却时间以防止刷屏
- 频道限制 - 将头像命令限制在特定的 Discord 频道中
- 仅头像模式 - 通过自动删除非机器人消息来创建干净的头像画廊
- 自定义嵌入 (Embeds) - 配置颜色、标题、描述和消息
要求
- Java 17 或更高版本
- Spigot/Paper 1.17.x 或更高版本
- Discord Bot Token
安装
- 从 Releases 页面下载最新版本
- 将 JAR 文件放入服务器的 plugins 文件夹中
- 启动/重启服务器
- 编辑
plugins/DiscordAvatarBot/config.yml中的机器人令牌和服务端 ID - 重启服务器
配置
Spoiler
# ============================================
# Discord Avatar Bot Configuration
# ============================================
# ==================== BOT SETTINGS ====================
# Your Discord Bot Token
# Get it from: https://discord.com/developers/applications
bot-token: "YOUR_BOT_TOKEN_HERE"
# Your Discord Server ID (Guild ID)
# Right-click on your server icon and click "Copy ID" (Developer Mode must be enabled)
server-id: "YOUR_SERVER_ID_HERE"
# Bot status message (what the bot shows as "Playing")
bot-status: "Looking for !av <username> for avatars"
# ==================== CHANNEL SETTINGS ====================
# Channel ID where avatar commands can be used
# Leave empty ("") to allow in all channels
# Example: "1234567890123456789"
allowed-channel-id: ""
# Avatar-Only Channel Mode
# When enabled, ALL user messages in the allowed channel get deleted
# Only the bot's avatar embeds will remain - creates a clean avatar gallery!
# Set to true to enable, false to disable
avatar-only-channel: false
# ==================== COOLDOWN SETTINGS ====================
# Enable or disable cooldown (true/false)
# Set to false to allow unlimited avatar requests
cooldown-enabled: true
# Cooldown time in hours (only works if cooldown-enabled is true)
# Set to 0 for no cooldown
cooldown-hours: 24
# ==================== CUSTOMIZABLE MESSAGES ====================
# Use {username} for player name, {hours} for remaining cooldown time
# Use {user} for Discord user mention
# Embed title
embed-title: "Player Avatar"
# Embed description (shown below title)
# Use {username} for the player name
embed-description: "**Player:** `{username}`"
# Embed color (hex format)
embed-color: "#5865F2"
# Footer text (main line)
embed-footer: "Avatar generated by tabavatars.net API"
# Note field title
note-title: "ℹ️ Note"
# Note field content (shown for premium skin warning)
note-content: "If you see an invalid skin, it's because this username doesn't have a premium Minecraft account. Some players use offline mode with custom skins."
# Show the note field (true/false)
show-note: true
# ==================== ERROR MESSAGES ====================
# No username provided
error-no-username: "❌ Usage: `!av <username>`"
# User is on cooldown
# Use {hours} for remaining time
error-cooldown: "⏰ You're on cooldown! You can request another avatar in **{hours} hours**.\nPlease don't spam the chat with avatars!"
# Failed to generate avatar
error-generation-failed: "❌ Failed to generate avatar. Please check the username."
# General error
error-general: "❌ An error occurred while generating the avatar. Please try again later."
# Private message rejection
error-dm-blocked: "❌ I don't accept private messages!"
# Wrong channel message (when user uses command in wrong channel)
# Leave empty to silently ignore
# Use {channel} for the allowed channel mention
error-wrong-channel: ""
# ==================== SUCCESS MESSAGES ====================
# Message shown after successful avatar generation (optional)
# Leave empty for no message
# Use {username} for player name, {user} for Discord user mention
success-message: ""
# ==================== LOGGING SETTINGS ====================
# Enable or disable console logging when avatars are generated
# Set to false to disable "Avatar generated for user X by Y" messages
console-logging: true
# Logo URL for embed footer (must be PNG/JPG - Discord doesn't support SVG)
logo-url: "https://tabavatars.net/assets/images/discordbot.png"
命令
!av <username>为指定的 Minecraft 用户名生成头像
在此处报告错误:
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包事件PacketEvents
retrooper
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
前置科技
28
ExyliaLib
ExyliaServices
ExyliaPlugins 的库。
前置实用
26
ProAuthMeLogin
3623813757
通过对话框或铁砧界面帮助你的 Anthme
实用
16
可自定义玩家模型
tom5454
自定义你的Minecraft头像!
装饰社交
16
Vessel
muhdfdeen
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
生物存储
13
Vivecraft Spigot Extension
fayer3
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
前置实用
12
评论 0
登录后参与评分
还没有评论,来抢沙发吧