From b43a3e9abdfb34f35f878269af02165c9add88fe Mon Sep 17 00:00:00 2001 From: rtm516 Date: Thu, 9 Apr 2020 15:26:14 +0100 Subject: [PATCH 1/2] Fixed players not getting removed from the players map on disconnect --- .../main/java/org/geysermc/connector/GeyserConnector.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/GeyserConnector.java b/connector/src/main/java/org/geysermc/connector/GeyserConnector.java index 714bd5ae..35f9085d 100644 --- a/connector/src/main/java/org/geysermc/connector/GeyserConnector.java +++ b/connector/src/main/java/org/geysermc/connector/GeyserConnector.java @@ -63,7 +63,7 @@ public class GeyserConnector { public static final String NAME = "Geyser"; public static final String VERSION = "1.0-SNAPSHOT"; - private final Map players = new HashMap<>(); + private final Map players = new HashMap<>(); private static GeyserConnector instance; @@ -189,11 +189,11 @@ public class GeyserConnector { } public void addPlayer(GeyserSession player) { - players.put(player.getAuthData().getUUID(), player); + players.put(player.getSocketAddress(), player); } public void removePlayer(GeyserSession player) { - players.remove(player.getAuthData().getUUID()); + players.remove(player.getSocketAddress()); } public static GeyserConnector start(PlatformType platformType, IGeyserBootstrap bootstrap) { From 7465a980981039d80a587994426bd6d35ba3c204 Mon Sep 17 00:00:00 2001 From: rtm516 Date: Thu, 9 Apr 2020 16:46:59 +0100 Subject: [PATCH 2/2] Fixed DEBUG logs not showing in newer Java versions --- bootstrap/standalone/pom.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootstrap/standalone/pom.xml b/bootstrap/standalone/pom.xml index 7c271339..0a583fa7 100644 --- a/bootstrap/standalone/pom.xml +++ b/bootstrap/standalone/pom.xml @@ -120,6 +120,9 @@ org.geysermc.platform.standalone.GeyserBootstrap + + true + @@ -130,4 +133,4 @@ - \ No newline at end of file +