aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test/CommandsSendToServerLogger.kt
blob: 25d876f7a723b29adda946cde13d9d22cf31c8f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package at.hannibal2.skyhanni.test

import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent

class CommandsSendToServerLogger {
    companion object {
        fun logCommandsToServer(command: String) {
            if (SkyHanniMod.feature.dev.debug.commandLogs) {
                Exception("command send to server: '$command'").printStackTrace()
            }
        }
    }

    @SubscribeEvent
    fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) {
        event.move(3, "dev.commandLogs", "dev.debug.commandLogs")
    }
}