blob: 35aade0302f3c25165d98d6e60810d1e971c5961 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package moe.nea.firmament.events
import com.mojang.brigadier.CommandDispatcher
data class MaskCommands(val dispatcher: CommandDispatcher<*>) : FirmamentEvent() {
companion object : FirmamentEventBus<MaskCommands>()
fun mask(name: String) {
dispatcher.root.children.removeIf { it.name.equals(name, ignoreCase = true) }
}
}
|