From a342e45839970129ce5cdf1f5bad8da5c607106b Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 8 Oct 2018 15:59:50 +0100 Subject: Increment version number --- .../src/main/java/me/lucko/spark/forge/ForgeCommandHandler.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spark-forge/src/main/java/me/lucko') 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 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, '&'); -- cgit