blob: 88ce05746353cc21d1fc0e952f6df73638e2fccd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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")
}
}
|