Package de.eimmer.ereignis.spieler
Class PlayerPreLoginEreignis
java.lang.Object
de.eimmer.ereignis.Ereignis
de.eimmer.ereignis.spieler.PlayerPreLoginEreignis
Deprecated.
Stores details for players attempting to log in
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Deprecated.Basic kick reasons for communicating to plugins -
Constructor Summary
ConstructorsConstructorDescriptionPlayerPreLoginEreignis
(String name, InetAddress ipAddress) Deprecated.PlayerPreLoginEreignis
(String name, InetAddress ipAddress, UUID uniqueId) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
allow()
Deprecated.Allows the spieler to log invoid
disallow
(PlayerPreLoginEreignis.Result result, String message) Deprecated.Disallows the spieler from logging in, with the given reasonDeprecated.Gets the spieler IP address.static HandhaberListe
Deprecated.Deprecated.Deprecated.Gets the current kick message that will be used if getResult() !getName()
Deprecated.Gets the spieler's name.Deprecated.Gets the current result of the login, as an enumDeprecated.Gets the spieler's unique ID.void
setKickMessage
(String message) Deprecated.Sets the kick message to display if getResult() !void
Deprecated.Sets the new result of the login, as an enumMethods inherited from class de.eimmer.ereignis.Ereignis
getEventName, isAsynchronous
-
Constructor Details
-
PlayerPreLoginEreignis
Deprecated. -
PlayerPreLoginEreignis
public PlayerPreLoginEreignis(@NotNull String name, @NotNull InetAddress ipAddress, @NotNull UUID uniqueId) Deprecated.
-
-
Method Details
-
getResult
Deprecated.Gets the current result of the login, as an enum- Returns:
- Current Result of the login
-
setResult
Deprecated.Sets the new result of the login, as an enum- Parameters:
result
- New result to set
-
getKickMessage
Deprecated.Gets the current kick message that will be used if getResult() != Result.ALLOWED- Returns:
- Current kick message
-
setKickMessage
Deprecated.Sets the kick message to display if getResult() != Result.ALLOWED- Parameters:
message
- New kick message
-
allow
public void allow()Deprecated.Allows the spieler to log in -
disallow
Deprecated.Disallows the spieler from logging in, with the given reason- Parameters:
result
- New result for disallowing the spielermessage
- Kick message to display to the user
-
getName
Deprecated.Gets the spieler's name.- Returns:
- the spieler's name
-
getAddress
Deprecated.Gets the spieler IP address.- Returns:
- The IP address
-
getHandlers
Deprecated.- Specified by:
getHandlers
in classEreignis
-
getUniqueId
Deprecated.Gets the spieler's unique ID.- Returns:
- The unique ID
-
getHandlerList
Deprecated.
-
AsyncSpielerVorLoginEreignis
is preferred to keep the secondary threads asynchronous.