Skip to content

Commit f4a2662

Browse files
committed
Don't register showcase command if it's disabled in the config.
1 parent 3697b44 commit f4a2662

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/src/main/kotlin/dev/chasem/cobblemonextras/CobblemonExtras.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ object CobblemonExtras {
154154

155155
PokeShoutAll().register(dispatcher)
156156
EmptyBox().register(dispatcher)
157-
Showcase().register(dispatcher)
157+
158+
if (config.showcase.isShowcaseEnabled) {
159+
Showcase().register(dispatcher)
160+
}
158161
ItemShout().register(dispatcher)
159162
PokeOdds().register(dispatcher)
160163
PokeKill().register(dispatcher)

0 commit comments

Comments
 (0)