mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-13 06:15:08 +01:00
Fix format parsing in unlinked kick message (Fixes #5667)
This commit is contained in:
parent
80e6f96c71
commit
d307279b3b
@ -60,7 +60,7 @@ public class LinkBukkitListener implements Listener {
|
||||
} catch (IllegalArgumentException e) {
|
||||
code = e.getMessage();
|
||||
}
|
||||
event.disallow(AsyncPlayerPreLoginEvent.Result.KICK_OTHER, tlLiteral("discordLinkLoginKick", "/link " + code, ess.getApi().getInviteUrl()));
|
||||
event.disallow(AsyncPlayerPreLoginEvent.Result.KICK_OTHER, AdventureUtil.miniToLegacy(tlLiteral("discordLinkLoginKick", "/link " + code, ess.getApi().getInviteUrl())));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user