From 4fb415c84586eb50605f523aed7aa6953a19e47f Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 24 Aug 2018 21:51:31 -0400 Subject: [PATCH] A little cleanup on the GameProfileRequestEvent. --- .../event/player/gameprofile/GameProfileRequestEvent.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/src/main/java/com/velocitypowered/api/event/player/gameprofile/GameProfileRequestEvent.java b/api/src/main/java/com/velocitypowered/api/event/player/gameprofile/GameProfileRequestEvent.java index 2630ac5a0..a8df9304d 100644 --- a/api/src/main/java/com/velocitypowered/api/event/player/gameprofile/GameProfileRequestEvent.java +++ b/api/src/main/java/com/velocitypowered/api/event/player/gameprofile/GameProfileRequestEvent.java @@ -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() {