File tree Expand file tree Collapse file tree 2 files changed +9
-16
lines changed
src/main/kotlin/org/polyfrost/polyweather/client Expand file tree Collapse file tree 2 files changed +9
-16
lines changed Original file line number Diff line number Diff line change 11package org.polyfrost.polyweather.client
22
33import org.polyfrost.oneconfig.api.commands.v1.CommandManager
4+ import org.polyfrost.oneconfig.utils.v1.dsl.openUI
5+ import org.polyfrost.polyweather.PolyWeatherConstants
46import org.polyfrost.polyweather.client.realtime.RealWeatherHandler
57import org.polyfrost.polyweather.util.WeatherType
68
@@ -32,8 +34,14 @@ object PolyWeatherClient {
3234
3335 fun initialize () {
3436 PolyWeatherConfig .preload()
35- CommandManager .register(PolyWeatherCommand )
3637 RealWeatherHandler .initialize()
38+
39+ with (CommandManager .literal(PolyWeatherConstants .ID )) {
40+ executes { ctx ->
41+ PolyWeatherConfig .openUI()
42+ 0
43+ }
44+ }
3745 }
3846
3947}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments