mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Minor cleanup
This commit is contained in:
parent
3ffaf5c0e5
commit
cfdaacf017
3 changed files with 1 additions and 18 deletions
|
@ -97,7 +97,6 @@ public class GeyserConnector implements Connector {
|
||||||
}
|
}
|
||||||
|
|
||||||
private GeyserConnector() {
|
private GeyserConnector() {
|
||||||
|
|
||||||
long startupTime = System.currentTimeMillis();
|
long startupTime = System.currentTimeMillis();
|
||||||
|
|
||||||
// Metric
|
// Metric
|
||||||
|
|
|
@ -90,55 +90,40 @@ public class GeyserLogger implements org.geysermc.api.logger.Logger {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void severe(String message) {
|
public void severe(String message) {
|
||||||
waitFor();
|
|
||||||
System.out.println(printConsole(ChatColor.DARK_RED + message, colored));
|
System.out.println(printConsole(ChatColor.DARK_RED + message, colored));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void severe(String message, Throwable error) {
|
public void severe(String message, Throwable error) {
|
||||||
waitFor();
|
|
||||||
System.out.println(printConsole(ChatColor.DARK_RED + message + "\n" + error.getMessage(), colored));
|
System.out.println(printConsole(ChatColor.DARK_RED + message + "\n" + error.getMessage(), colored));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void error(String message) {
|
public void error(String message) {
|
||||||
waitFor();
|
|
||||||
System.out.println(printConsole(ChatColor.RED + message, colored));
|
System.out.println(printConsole(ChatColor.RED + message, colored));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void error(String message, Throwable error) {
|
public void error(String message, Throwable error) {
|
||||||
waitFor();
|
|
||||||
System.out.println(printConsole(ChatColor.RED + message + "\n" + error, colored));
|
System.out.println(printConsole(ChatColor.RED + message + "\n" + error, colored));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void warning(String message) {
|
public void warning(String message) {
|
||||||
waitFor();
|
|
||||||
System.out.println(printConsole(ChatColor.YELLOW + message, colored));
|
System.out.println(printConsole(ChatColor.YELLOW + message, colored));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void info(String message) {
|
public void info(String message) {
|
||||||
waitFor();
|
|
||||||
System.out.println(printConsole(ChatColor.WHITE + message, colored));
|
System.out.println(printConsole(ChatColor.WHITE + message, colored));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void debug(String message) {
|
public void debug(String message) {
|
||||||
waitFor();
|
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
System.out.println(printConsole(ChatColor.GRAY + message, colored));
|
System.out.println(printConsole(ChatColor.GRAY + message, colored));
|
||||||
}
|
}
|
||||||
|
|
||||||
private synchronized void waitFor() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void stop() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String printConsole(String message, boolean colors) {
|
public static String printConsole(String message, boolean colors) {
|
||||||
return colors ? ChatColor.toANSI(message + ChatColor.RESET) : ChatColor.stripColors(message + ChatColor.RESET);
|
return colors ? ChatColor.toANSI(message + ChatColor.RESET) : ChatColor.stripColors(message + ChatColor.RESET);
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,8 +157,7 @@ public class GeyserSession implements Player {
|
||||||
playStatusPacket.setStatus(PlayStatusPacket.Status.PLAYER_SPAWN);
|
playStatusPacket.setStatus(PlayStatusPacket.Status.PLAYER_SPAWN);
|
||||||
upstream.sendPacket(playStatusPacket);
|
upstream.sendPacket(playStatusPacket);
|
||||||
|
|
||||||
System.out.println("play status sent");
|
connector.getLogger().debug("play status sent");
|
||||||
System.out.println(playerEntity.getPosition());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void authenticate(String username) {
|
public void authenticate(String username) {
|
||||||
|
|
Loading…
Reference in a new issue