aboutsummaryrefslogtreecommitdiff
path: root/spark-forge
diff options
context:
space:
mode:
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, '&');