diff --git a/build.gradle b/build.gradle index 0c379b0..960e0e7 100644 --- a/build.gradle +++ b/build.gradle @@ -33,21 +33,12 @@ repositories { name = "lucko" url = "https://repo.lucko.me" } - maven { - name = "Jitpack" - url = "https://jitpack.io" - - content { - includeGroup "com.github.AlexProgrammerDE.spark" - includeGroup "com.github.jvm-profiling-tools" - } - } } dependencies { implementation "net.raphimc:ViaProxy:3.3.6" - include "com.github.AlexProgrammerDE.spark:spark-common:2ba922a171" + include "me.lucko:spark-common:1.10.119-SNAPSHOT" } processResources { diff --git a/src/main/java/net/raphimc/sparkplugin/ViaProxyPlatformInfo.java b/src/main/java/net/raphimc/sparkplugin/ViaProxyPlatformInfo.java index 79466b9..824f723 100644 --- a/src/main/java/net/raphimc/sparkplugin/ViaProxyPlatformInfo.java +++ b/src/main/java/net/raphimc/sparkplugin/ViaProxyPlatformInfo.java @@ -32,6 +32,11 @@ public String getName() { return "ViaProxy"; } + @Override + public String getBrand() { + return "ViaProxy"; + } + @Override public String getVersion() { return ViaProxy.VERSION; diff --git a/src/main/java/net/raphimc/sparkplugin/ViaProxySparkPlugin.java b/src/main/java/net/raphimc/sparkplugin/ViaProxySparkPlugin.java index 8443a59..3885496 100644 --- a/src/main/java/net/raphimc/sparkplugin/ViaProxySparkPlugin.java +++ b/src/main/java/net/raphimc/sparkplugin/ViaProxySparkPlugin.java @@ -95,6 +95,19 @@ public void log(final Level level, final String msg) { } } + @Override + public void log(final Level level, final String msg, Throwable throwable) { + if (level == Level.INFO) { + LOGGER.info(msg, throwable); + } else if (level == Level.WARNING) { + LOGGER.warn(msg, throwable); + } else if (level == Level.SEVERE) { + LOGGER.error(msg, throwable); + } else { + throw new IllegalArgumentException(level.getName()); + } + } + @Override public PlatformInfo getPlatformInfo() { return new ViaProxyPlatformInfo();