DiscordAvatarBot

插件

· 作者 Duka

用于生成 Minecraft 玩家头像的 Discord 机器人

0 本站下载 0 关注 更新于 9 个月前

最新 1.0.3 · 1.21.11 · Bukkit / Paper

一键开服(送7天)

一款 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 用户名生成头像

在此处报告错误:

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源