From cfdaacf01766ad93465251ca33cc1e86c929aaeb Mon Sep 17 00:00:00 2001 From: RednedEpic Date: Tue, 12 Nov 2019 22:28:47 -0600 Subject: [PATCH] Minor cleanup --- .../org/geysermc/connector/GeyserConnector.java | 1 - .../geysermc/connector/console/GeyserLogger.java | 15 --------------- .../connector/network/session/GeyserSession.java | 3 +-- 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/GeyserConnector.java b/connector/src/main/java/org/geysermc/connector/GeyserConnector.java index 67c0b7099..cc16f70e0 100644 --- a/connector/src/main/java/org/geysermc/connector/GeyserConnector.java +++ b/connector/src/main/java/org/geysermc/connector/GeyserConnector.java @@ -97,7 +97,6 @@ public class GeyserConnector implements Connector { } private GeyserConnector() { - long startupTime = System.currentTimeMillis(); // Metric diff --git a/connector/src/main/java/org/geysermc/connector/console/GeyserLogger.java b/connector/src/main/java/org/geysermc/connector/console/GeyserLogger.java index 0ff122ea2..7634debce 100644 --- a/connector/src/main/java/org/geysermc/connector/console/GeyserLogger.java +++ b/connector/src/main/java/org/geysermc/connector/console/GeyserLogger.java @@ -90,55 +90,40 @@ public class GeyserLogger implements org.geysermc.api.logger.Logger { @Override public void severe(String message) { - waitFor(); System.out.println(printConsole(ChatColor.DARK_RED + message, colored)); } @Override public void severe(String message, Throwable error) { - waitFor(); System.out.println(printConsole(ChatColor.DARK_RED + message + "\n" + error.getMessage(), colored)); } @Override public void error(String message) { - waitFor(); System.out.println(printConsole(ChatColor.RED + message, colored)); } @Override public void error(String message, Throwable error) { - waitFor(); System.out.println(printConsole(ChatColor.RED + message + "\n" + error, colored)); } @Override public void warning(String message) { - waitFor(); System.out.println(printConsole(ChatColor.YELLOW + message, colored)); } @Override public void info(String message) { - waitFor(); System.out.println(printConsole(ChatColor.WHITE + message, colored)); } @Override public void debug(String message) { - waitFor(); - if (debug) System.out.println(printConsole(ChatColor.GRAY + message, colored)); } - private synchronized void waitFor() { - - } - - public void stop() { - } - public static String printConsole(String message, boolean colors) { return colors ? ChatColor.toANSI(message + ChatColor.RESET) : ChatColor.stripColors(message + ChatColor.RESET); } diff --git a/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java b/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java index bfe3d4cea..0a619e92f 100644 --- a/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java +++ b/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java @@ -157,8 +157,7 @@ public class GeyserSession implements Player { playStatusPacket.setStatus(PlayStatusPacket.Status.PLAYER_SPAWN); upstream.sendPacket(playStatusPacket); - System.out.println("play status sent"); - System.out.println(playerEntity.getPosition()); + connector.getLogger().debug("play status sent"); } public void authenticate(String username) {