package moe.nea.firmament.events import com.mojang.brigadier.CommandDispatcher data class MaskCommands(val dispatcher: CommandDispatcher<*>) : FirmamentEvent() { companion object : FirmamentEventBus() fun mask(name: String) { dispatcher.root.children.removeIf { it.name.equals(name, ignoreCase = true) } } }