Skip to content

Commit 4db62b8

Browse files
committed
Use official spark dependency
1 parent 2ec2e13 commit 4db62b8

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

build.gradle

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,12 @@ repositories {
3333
name = "lucko"
3434
url = "https://repo.lucko.me"
3535
}
36-
maven {
37-
name = "Jitpack"
38-
url = "https://jitpack.io"
39-
40-
content {
41-
includeGroup "com.github.AlexProgrammerDE.spark"
42-
includeGroup "com.github.jvm-profiling-tools"
43-
}
44-
}
4536
}
4637

4738
dependencies {
4839
implementation "net.raphimc:ViaProxy:3.3.6"
4940

50-
include "com.github.AlexProgrammerDE.spark:spark-common:2ba922a171"
41+
include "me.lucko:spark-common:1.10.119-SNAPSHOT"
5142
}
5243

5344
processResources {

src/main/java/net/raphimc/sparkplugin/ViaProxyPlatformInfo.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public String getName() {
3232
return "ViaProxy";
3333
}
3434

35+
@Override
36+
public String getBrand() {
37+
return "ViaProxy";
38+
}
39+
3540
@Override
3641
public String getVersion() {
3742
return ViaProxy.VERSION;

src/main/java/net/raphimc/sparkplugin/ViaProxySparkPlugin.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@ public void log(final Level level, final String msg) {
9595
}
9696
}
9797

98+
@Override
99+
public void log(final Level level, final String msg, Throwable throwable) {
100+
if (level == Level.INFO) {
101+
LOGGER.info(msg, throwable);
102+
} else if (level == Level.WARNING) {
103+
LOGGER.warn(msg, throwable);
104+
} else if (level == Level.SEVERE) {
105+
LOGGER.error(msg, throwable);
106+
} else {
107+
throw new IllegalArgumentException(level.getName());
108+
}
109+
}
110+
98111
@Override
99112
public PlatformInfo getPlatformInfo() {
100113
return new ViaProxyPlatformInfo();

0 commit comments

Comments
 (0)