Skip to content

Commit

Permalink
Use official spark dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Dec 11, 2024
1 parent 2ec2e13 commit 4db62b8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
11 changes: 1 addition & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public String getName() {
return "ViaProxy";
}

@Override
public String getBrand() {
return "ViaProxy";
}

@Override
public String getVersion() {
return ViaProxy.VERSION;
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/net/raphimc/sparkplugin/ViaProxySparkPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4db62b8

Please sign in to comment.