Class AccountLinkEvent
java.lang.Object
net.clementraynaud.skoice.common.api.events.SkoiceEventMinecraft
net.clementraynaud.skoice.common.api.events.SkoiceEventLink
net.clementraynaud.skoice.common.api.events.account.AccountLinkEvent
- All Implemented Interfaces:
SkoiceEvent
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 Summary
Constructors -
Method Summary
Methods inherited from class SkoiceEventLink
getDiscordIdMethods inherited from class SkoiceEventMinecraft
getMinecraftId
-
Constructor Details
-
AccountLinkEvent
-