mirror of
https://github.com/PaperMC/Velocity.git
synced 2024-12-03 06:52:16 +08:00
A little cleanup on the GameProfileRequestEvent.
This commit is contained in:
parent
87ffb1ac2f
commit
4fb415c845
@ -17,11 +17,11 @@ public class GameProfileRequestEvent {
|
||||
private final boolean onlineMode;
|
||||
private GameProfile gameProfile;
|
||||
|
||||
public GameProfileRequestEvent(InboundConnection connection, GameProfile originalProfile, boolean onlinemode) {
|
||||
this.connection = connection;
|
||||
this.originalProfile = Preconditions.checkNotNull(originalProfile, "profile");
|
||||
public GameProfileRequestEvent(InboundConnection connection, GameProfile originalProfile, boolean onlineMode) {
|
||||
this.connection = Preconditions.checkNotNull(connection, "connection");
|
||||
this.originalProfile = Preconditions.checkNotNull(originalProfile, "originalProfile");
|
||||
this.username = originalProfile.getName();
|
||||
this.onlineMode = onlinemode;
|
||||
this.onlineMode = onlineMode;
|
||||
}
|
||||
|
||||
public InboundConnection getConnection() {
|
||||
|
Loading…
Reference in New Issue
Block a user