Class AccountLinkEvent

All Implemented Interfaces:
SkoiceEvent

public class AccountLinkEvent extends SkoiceEventLink
Called when a Minecraft account is linked to a Discord account through the Skoice in-game linking process.

This event is fired after a successful link is established between a Minecraft player and a Discord user through the in-game command. It is not fired when using SkoiceAPI.linkUser(UUID, String).

Example usage:

eventBus.subscribe(AccountLinkEvent.class, event -> {
    UUID minecraftId = event.getMinecraftId();
    String discordId = event.getDiscordId();
    // Handle the account linking
});
See Also:
  • Constructor Details

    • AccountLinkEvent

      public AccountLinkEvent(String minecraftId, String discordId)