aboutsummaryrefslogtreecommitdiff
path: root/spark-forge
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2018-10-08 15:59:50 +0100
committerLuck <git@lucko.me>2018-10-08 15:59:50 +0100
commita342e45839970129ce5cdf1f5bad8da5c607106b (patch)
treed4f32213f809a3d9c59c2a24f4b066b558099e2d /spark-forge
parent32bc0480ca20b19dcb04ca62b8934913c8a938c5 (diff)
downloadspark-a342e45839970129ce5cdf1f5bad8da5c607106b.tar.gz
spark-a342e45839970129ce5cdf1f5bad8da5c607106b.tar.bz2
spark-a342e45839970129ce5cdf1f5bad8da5c607106b.zip
Increment version number
Diffstat (limited to 'spark-forge')
-rw-r--r--spark-forge/src/main/java/me/lucko/spark/forge/ForgeCommandHandler.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/spark-forge/src/main/java/me/lucko/spark/forge/ForgeCommandHandler.java b/spark-forge/src/main/java/me/lucko/spark/forge/ForgeCommandHandler.java
index a328ace..8f39c1b 100644
--- a/spark-forge/src/main/java/me/lucko/spark/forge/ForgeCommandHandler.java
+++ b/spark-forge/src/main/java/me/lucko/spark/forge/ForgeCommandHandler.java
@@ -37,6 +37,7 @@ import net.minecraft.util.text.Style;
import net.minecraft.util.text.TextComponentString;
import net.minecraft.util.text.TextFormatting;
import net.minecraft.util.text.event.ClickEvent;
+import net.minecraftforge.fml.common.Mod;
import java.util.Collections;
import java.util.List;
@@ -52,6 +53,11 @@ public abstract class ForgeCommandHandler extends CommandHandler<ICommandSender>
new ThreadFactoryBuilder().setNameFormat("spark-forge-async-worker").build()
);
+ @Override
+ public String getVersion() {
+ return SparkForgeMod.class.getAnnotation(Mod.class).version();
+ }
+
@SuppressWarnings("deprecation")
protected ITextComponent colorize(String message) {
TextComponent component = ComponentSerializers.LEGACY.deserialize(message, '&');