mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 09:08:01 +01:00
Use a click component for discord link command
This commit is contained in:
parent
3e29e04722
commit
04518dbbb3
@ -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"));
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user