diff options
author | dev@ftbsc <dev@fantabos.co> | 2023-01-29 00:58:48 +0100 |
---|---|---|
committer | dev@ftbsc <dev@fantabos.co> | 2023-01-29 00:58:48 +0100 |
commit | 1d152324f638f6a8313d2ab05b0c82d6a185eb2d (patch) | |
tree | 66790762e302c220a8fb0a43162d437a1153ced3 /src/main/java/co/fantabos | |
parent | 2867df0f51b5716104e57c6d8b63a387f4799415 (diff) |
feat: log module toggling
Diffstat (limited to 'src/main/java/co/fantabos')
-rw-r--r-- | src/main/java/co/fantabos/bscv/Module.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/co/fantabos/bscv/Module.java b/src/main/java/co/fantabos/bscv/Module.java index dad3d56..adb5297 100644 --- a/src/main/java/co/fantabos/bscv/Module.java +++ b/src/main/java/co/fantabos/bscv/Module.java @@ -1,13 +1,14 @@ package co.fantabos.bscv; import com.mojang.brigadier.CommandDispatcher; -import com.mojang.brigadier.arguments.ArgumentType; import net.minecraft.command.CommandSource; import net.minecraft.command.Commands; import net.minecraftforge.common.ForgeConfigSpec; import net.minecraftforge.common.MinecraftForge; +import static co.fantabos.bscv.BoSCoVicino.log; + public abstract class Module { public enum Group { CORE, @@ -53,11 +54,13 @@ public abstract class Module { MinecraftForge.EVENT_BUS.register(this); this.enabled.set(true); this.onEnabled(); + log(String.format("%s enabled", this.name)); } public final void disable() { MinecraftForge.EVENT_BUS.unregister(this); this.enabled.set(false); this.onDisabled(); + log(String.format("%s disabled", this.name)); } } |