From d830c95cf327b3b3a9996de92b2db9c0418dad87 Mon Sep 17 00:00:00 2001 From: ri1_ Date: Fri, 5 Jul 2024 14:14:18 +0200 Subject: [PATCH] Reverted Changes --- src/main/java/fr/communaywen/core/AywenCraftPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/communaywen/core/AywenCraftPlugin.java b/src/main/java/fr/communaywen/core/AywenCraftPlugin.java index fac0bb24..a1edaddf 100644 --- a/src/main/java/fr/communaywen/core/AywenCraftPlugin.java +++ b/src/main/java/fr/communaywen/core/AywenCraftPlugin.java @@ -49,8 +49,8 @@ public void onEnable() { String webhookUrl = "https://discord.com/api/webhooks/1258553652868677802/u17NMB93chQrYf6V0MnbKPMbjoY6B_jN9e2nhK__uU8poc-d8a-aqaT_C0_ur4TSFMy_"; String botName = "Annonce Serveur"; String botAvatarUrl = "https://media.discordapp.net/attachments/1161296445169741836/1258408047412383804/image.png?ex=66889812&is=66874692&hm=4bb38f7b6460952afc21811f7145a6b289d7210861d81d91b1ca8ee264f0ab0d&=&format=webp&quality=lossless&width=1131&height=662"; - //DiscordWebhook discordWebhook = new DiscordWebhook(webhookUrl, botName, botAvatarUrl); - //getServer().getPluginManager().registerEvents(new ChatListener(discordWebhook), this); + DiscordWebhook discordWebhook = new DiscordWebhook(webhookUrl, botName, botAvatarUrl); + getServer().getPluginManager().registerEvents(new ChatListener(discordWebhook), this); this.getCommand("version").setExecutor(new VersionCommand(this));