const { SlashCommandBuilder, EmbedBuilder } = require('discord.js');

module.exports = {
    data: new SlashCommandBuilder()
        .setName('play')
        .setDescription('Affiche les informations de connexion au serveur Minecraft'),
    
    async execute(interaction) {
        const embed = new EmbedBuilder()
            .setColor('#FFD700')
            .setTitle('🎮 Serveur Minecraft Peerkinton')
            .setDescription('Rejoins notre serveur Minecraft !')
            .addFields(
                { name: '🌐 Adresse IP', value: '`play.peerkinton.com`', inline: true },
                { name: '🎯 Version', value: '1.20.1', inline: true },
            )
            .setThumbnail('https://cdn.discordapp.com/attachments/123/456/minecraft-icon.png')
            .setFooter({ text: 'Peerkinton • Serveur Minecraft' })
            .setTimestamp();

        await interaction.reply({ embeds: [embed] });
    }
};