diff options
Diffstat (limited to 'spark-sponge8/src/main/java/me/lucko/spark/sponge')
-rw-r--r-- | spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java | 2 | ||||
-rw-r--r-- | spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8SparkPlugin.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java b/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java index 51805b3..c2a136a 100644 --- a/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java +++ b/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java @@ -44,7 +44,7 @@ public class Sponge8PlatformInfo extends AbstractPlatformInfo { @Override public String getVersion() { - return this.game.platform().container(Platform.Component.IMPLEMENTATION).metadata().version(); + return this.game.platform().container(Platform.Component.IMPLEMENTATION).metadata().version().toString(); } @Override diff --git a/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8SparkPlugin.java b/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8SparkPlugin.java index f1a54b6..154015a 100644 --- a/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8SparkPlugin.java +++ b/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8SparkPlugin.java @@ -46,7 +46,7 @@ import org.spongepowered.api.event.lifecycle.RegisterCommandEvent; import org.spongepowered.api.event.lifecycle.StartedEngineEvent; import org.spongepowered.api.event.lifecycle.StoppingEngineEvent; import org.spongepowered.plugin.PluginContainer; -import org.spongepowered.plugin.jvm.Plugin; +import org.spongepowered.plugin.builtin.jvm.Plugin; import java.nio.file.Path; import java.util.List; @@ -93,7 +93,7 @@ public class Sponge8SparkPlugin implements SparkPlugin { @Override public String getVersion() { - return this.pluginContainer.metadata().version(); + return this.pluginContainer.metadata().version().toString(); } @Override |