From 15c5857c4fda15373f533a4e1c36714a6ef43200 Mon Sep 17 00:00:00 2001 From: games647 Date: Thu, 30 Aug 2018 12:31:14 +0200 Subject: [PATCH] Correctly set the offline UUID in ProtocolSupport (Thanks to @Shevchik) --- .../ProtocolSupportListener.java | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocolsupport/ProtocolSupportListener.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocolsupport/ProtocolSupportListener.java index 4571b6dd..f11b3f54 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocolsupport/ProtocolSupportListener.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocolsupport/ProtocolSupportListener.java @@ -1,19 +1,21 @@ package com.github.games647.fastlogin.bukkit.listener.protocolsupport; +import com.github.games647.craftapi.UUIDAdapter; import com.github.games647.fastlogin.bukkit.BukkitLoginSession; import com.github.games647.fastlogin.bukkit.FastLoginBukkit; import com.github.games647.fastlogin.core.StoredProfile; import com.github.games647.fastlogin.core.shared.JoinManagement; import java.net.InetSocketAddress; +import java.util.Optional; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import protocolsupport.api.events.ConnectionCloseEvent; -import protocolsupport.api.events.PlayerLoginFinishEvent; import protocolsupport.api.events.PlayerLoginStartEvent; +import protocolsupport.api.events.PlayerProfileCompleteEvent; public class ProtocolSupportListener extends JoinManagement implements Listener { @@ -48,16 +50,18 @@ public class ProtocolSupportListener extends JoinManagement