diff --git a/src/client/kotlin/chickenmanfy/scify/SciFyClient.kt b/src/client/kotlin/chickenmanfy/scify/SciFyClient.kt index 0da24b4..21756ac 100644 --- a/src/client/kotlin/chickenmanfy/scify/SciFyClient.kt +++ b/src/client/kotlin/chickenmanfy/scify/SciFyClient.kt @@ -2,15 +2,23 @@ package chickenmanfy.scify import chickenmanfy.scify.modules.* // woo fancy import all modules import net.fabricmc.api.ClientModInitializer +import net.minecraft.client.MinecraftClient object SciFyClient : ClientModInitializer { + val debugUser = "Chickenmanfy" override fun onInitializeClient() { - // Run the modules Hotkey().hotkeys() - AutoWelcome().autoWelcome() - FishingNotif().fishingNotif() - Bars().bars() - //LivelyMode().livelyMode() + // Run the modules + if (MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "dungeonfy.minehut.gg" || + MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "51.222.121.148:25599" || + MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "minehut.com" || // if you join minehut.com and type /join dungeonfy + MinecraftClient.getInstance().player?.name?.string == debugUser) // Test override + { + AutoWelcome().autoWelcome() + FishingNotif().fishingNotif() + Bars().bars() + //LivelyMode().livelyMode() + } } } diff --git a/src/client/kotlin/chickenmanfy/scify/modules/Hotkey.kt b/src/client/kotlin/chickenmanfy/scify/modules/Hotkey.kt index 4e4517f..159ff47 100644 --- a/src/client/kotlin/chickenmanfy/scify/modules/Hotkey.kt +++ b/src/client/kotlin/chickenmanfy/scify/modules/Hotkey.kt @@ -1,5 +1,6 @@ package chickenmanfy.scify.modules +import chickenmanfy.scify.SciFyClient.debugUser import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper import net.minecraft.client.MinecraftClient @@ -11,8 +12,6 @@ import org.lwjgl.glfw.GLFW class Hotkey { fun hotkeys() { - val debugUser = "Chickenmanfy" - // Register Keys val warp = KeyBindingHelper.registerKeyBinding( KeyBinding(