Use a click component for discord link command

This commit is contained in:
JRoy 2024-09-14 16:21:28 -04:00 committed by Josh Roy
parent 3e29e04722
commit 04518dbbb3
2 changed files with 2 additions and 2 deletions

View File

@ -812,7 +812,7 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
} catch (final Exception ex) {
LOGGER.log(Level.SEVERE, ex.getMessage(), ex);
if (cSender instanceof Player) {
cSender.sendMessage(tlLocale(I18n.getLocale(getPlayerLocaleProvider().getLocale((Player) cSender)), "internalError"));
getBukkitAudience().sender(cSender).sendMessage(AdventureUtil.miniMessage().deserialize(tlLocale(I18n.getLocale(getPlayerLocaleProvider().getLocale((Player) cSender)), "internalError")));
} else {
cSender.sendMessage(tlLiteral("internalError"));
}

View File

@ -248,7 +248,7 @@ discordCommandAccountResponseLinkedOther={0}'s account is linked to the Minecraf
discordCommandAccountResponseNotLinked=You do not have a linked Minecraft account.
discordCommandAccountResponseNotLinkedOther={0} does not have a linked Minecraft account.
discordCommandDescription=Sends the discord invite link to the player.
discordCommandLink=<primary>Join our Discord server at <secondary>{0}<primary>\!
discordCommandLink=<primary>Join our Discord server at <secondary><click:open_url:"{0}">{0}</click><primary>\!
discordCommandUsage=/<command>
discordCommandUsage1=/<command>
discordCommandUsage1Description=Sends the discord invite link to the player