Class LocalPlayerPreLoginEvent.Result
java.lang.Object
eu.cloudnetservice.modules.bridge.node.event.LocalPlayerPreLoginEvent.Result
- Enclosing class:
LocalPlayerPreLoginEvent
Represents the outcome of the login event.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final LocalPlayerPreLoginEvent.Resultprivate final Component -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowed()Gets a jvm static result that allows the login.Creates a new result that denies the login of the player and sets the given reason.booleanGets whether this result allows the login or not.result()Gets the text component that is displayed to the player if the login is denied.
-
Field Details
-
ALLOWED
-
allowed
private final boolean allowed -
result
-
-
Constructor Details
-
Result
-
-
Method Details
-
allowed
Gets a jvm static result that allows the login.- Returns:
- an allowing result.
-
denied
-
permitLogin
public boolean permitLogin()Gets whether this result allows the login or not.- Returns:
- true if the login is allowed, false otherwise.
-
result
Gets the text component that is displayed to the player if the login is denied.- Returns:
- the reason to display to the player, might be null if the component is not set.
-