Class LoginEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
com.nickuc.login.api.event.internal.bungee.BungeeEvent
com.nickuc.login.api.event.internal.bungee.BungeeCancellableEvent
com.nickuc.login.api.event.bungee.auth.LoginEvent
- All Implemented Interfaces:
CancellableEvent,EventWithPlayer,net.md_5.bungee.api.plugin.Cancellable
Event triggered when a player finishes authentication via login.
-
Constructor Summary
ConstructorsConstructorDescriptionLoginEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, String password) -
Method Summary
Modifier and TypeMethodDescriptionReturns the password used.net.md_5.bungee.api.connection.ProxiedPlayerReturns the player instance.Methods inherited from class com.nickuc.login.api.event.internal.bungee.BungeeCancellableEvent
isCancelled, setCancelledMethods inherited from class net.md_5.bungee.api.plugin.Event
callEvent, postCall
-
Constructor Details
-
LoginEvent
-
-
Method Details
-
getPlayer
public net.md_5.bungee.api.connection.ProxiedPlayer getPlayer()Returns the player instance.- Specified by:
getPlayerin interfaceEventWithPlayer
-
getPassword
Returns the password used.- Returns:
- null if the password was not provided.
- Since:
- API v5
-