Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
A little cleanup on the GameProfileRequestEvent.
Dieser Commit ist enthalten in:
Ursprung
87ffb1ac2f
Commit
4fb415c845
@ -17,11 +17,11 @@ public class GameProfileRequestEvent {
|
|||||||
private final boolean onlineMode;
|
private final boolean onlineMode;
|
||||||
private GameProfile gameProfile;
|
private GameProfile gameProfile;
|
||||||
|
|
||||||
public GameProfileRequestEvent(InboundConnection connection, GameProfile originalProfile, boolean onlinemode) {
|
public GameProfileRequestEvent(InboundConnection connection, GameProfile originalProfile, boolean onlineMode) {
|
||||||
this.connection = connection;
|
this.connection = Preconditions.checkNotNull(connection, "connection");
|
||||||
this.originalProfile = Preconditions.checkNotNull(originalProfile, "profile");
|
this.originalProfile = Preconditions.checkNotNull(originalProfile, "originalProfile");
|
||||||
this.username = originalProfile.getName();
|
this.username = originalProfile.getName();
|
||||||
this.onlineMode = onlinemode;
|
this.onlineMode = onlineMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public InboundConnection getConnection() {
|
public InboundConnection getConnection() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren