Class PreLoginEvent.PreLoginResult
java.lang.Object
me.internalizable.numdrassl.api.event.connection.PreLoginEvent.PreLoginResult
- All Implemented Interfaces:
ResultedEvent.Result
- Enclosing class:
PreLoginEvent
public static final class PreLoginEvent.PreLoginResult
extends Object
implements ResultedEvent.Result
Result for a pre-login event.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PreLoginEvent.PreLoginResultallowed()Allow the login.static PreLoginEvent.PreLoginResultDeny the login with a reason.Get the reason for denying the login.booleanCheck if this result allows the action to proceed.
-
Method Details
-
isAllowed
public boolean isAllowed()Description copied from interface:ResultedEvent.ResultCheck if this result allows the action to proceed.- Specified by:
isAllowedin interfaceResultedEvent.Result- Returns:
- true if allowed
-
getDenyReason
Get the reason for denying the login.- Returns:
- the deny reason, or null if allowed
-
allowed
-
denied
Deny the login with a reason.- Parameters:
reason- the reason to show the player- Returns:
- a denied result
-