We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b26e3c6 commit c3ac051Copy full SHA for c3ac051
1 file changed
src/main/kotlin/com/mairwunnx/projectessentials/core/impl/vanilla/commands/GameModeCommand.kt
@@ -21,9 +21,13 @@ import net.minecraft.world.GameType
21
internal object GameModeCommand : VanillaCommandBase("gamemode") {
22
override fun register(dispatcher: CommandDispatcher<CommandSource>) {
23
super.register(dispatcher).also { aliases() }
24
+ // @formatter:off
25
GameType.values().forEach {
- if (!it.name.startsWith("sp")) short("gm${it.getName()[0]}", it) else short("gmsp", it)
26
+ if (it != GameType.NOT_SET) {
27
+ if (!it.getName().startsWith("sp")) short("gm${it.getName()[0]}", it) else short("gmsp", it)
28
+ }
29
}
30
+ // @formatter:on
31
val literal = Commands.literal(name)
32
GameType.values().forEach { type ->
33
if (type != GameType.NOT_SET) {
0 commit comments