aboutsummaryrefslogtreecommitdiff
path: root/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2021-05-27 23:27:38 +0100
committerLuck <git@lucko.me>2021-05-30 21:51:37 +0100
commitf5bb628319d57c8d1ed26e1673d9f781cc939f83 (patch)
treedabba3da9c6bc37447d6eacfd42eddb30e6fd2d2 /spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java
parent767995e05d46b416292a713756782f939b16f61f (diff)
downloadspark-f5bb628319d57c8d1ed26e1673d9f781cc939f83.tar.gz
spark-f5bb628319d57c8d1ed26e1673d9f781cc939f83.tar.bz2
spark-f5bb628319d57c8d1ed26e1673d9f781cc939f83.zip
Extract class sources (plugin/mod names) and include in data payload
Diffstat (limited to 'spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java')
-rw-r--r--spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java b/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java
index ba32a3e..40c470f 100644
--- a/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java
+++ b/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java
@@ -33,6 +33,7 @@ import com.velocitypowered.api.proxy.ProxyServer;
import me.lucko.spark.common.SparkPlatform;
import me.lucko.spark.common.SparkPlugin;
import me.lucko.spark.common.platform.PlatformInfo;
+import me.lucko.spark.common.util.ClassSourceLookup;
import java.nio.file.Path;
import java.util.List;
@@ -109,6 +110,11 @@ public class VelocitySparkPlugin implements SparkPlugin, SimpleCommand {
}
@Override
+ public ClassSourceLookup createClassSourceLookup() {
+ return new VelocityClassSourceLookup(this.proxy.getPluginManager());
+ }
+
+ @Override
public PlatformInfo getPlatformInfo() {
return new VelocityPlatformInfo(this.proxy);
}