diff options
-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 fecfb5e..51805b3 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).getMetadata().getVersion(); + return this.game.platform().container(Platform.Component.IMPLEMENTATION).metadata().version(); } @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 ff44c93..13c5d27 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 @@ -75,7 +75,7 @@ public class Sponge8SparkPlugin implements SparkPlugin { @Listener public void onRegisterCommands(final RegisterCommandEvent<Command.Raw> event) { - event.register(this.pluginContainer, new SparkCommand(this), this.pluginContainer.getMetadata().getId()); + event.register(this.pluginContainer, new SparkCommand(this), this.pluginContainer.metadata().id()); } @Listener @@ -91,7 +91,7 @@ public class Sponge8SparkPlugin implements SparkPlugin { @Override public String getVersion() { - return this.pluginContainer.getMetadata().getVersion(); + return this.pluginContainer.metadata().version(); } @Override |