aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/commands/JoinDungeonCommands.kt
blob: 13b62421e6314a415ff5c3a31bd59f737047fce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
package com.dulkirfabric.commands

import com.dulkirfabric.util.TextUtils
import com.mojang.brigadier.CommandDispatcher
import com.mojang.brigadier.builder.LiteralArgumentBuilder
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource
import net.minecraft.command.CommandRegistryAccess

object JoinDungeonCommands {
    object F1Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("f1").executes {
                TextUtils.info("§6Attempting to join F1...")
                TextUtils.sendCommand("joindungeon catacombs 1")
                return@executes 0
            })
        }
    }

    object F2Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("f2").executes {
                TextUtils.info("§6Attempting to join F2...")
                TextUtils.sendCommand("joindungeon catacombs 2")
                return@executes 0
            })
        }
    }

    object F3Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("f3").executes {
                TextUtils.info("§6Attempting to join F3...")
                TextUtils.sendCommand("joindungeon catacombs 3")
                return@executes 0
            })
        }
    }

    object F4Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("f4").executes {
                TextUtils.info("§6Attempting to join F4...")
                TextUtils.sendCommand("joindungeon catacombs 4")
                return@executes 0
            })
        }
    }

    object F5Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("f5").executes {
                TextUtils.info("§6Attempting to join F5...")
                TextUtils.sendCommand("joindungeon catacombs 5")
                return@executes 0
            })
        }
    }

    object F6Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("f6").executes {
                TextUtils.info("§6Attempting to join F6...")
                TextUtils.sendCommand("joindungeon catacombs 6")
                return@executes 0
            })
        }
    }

    object F7Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("f7").executes {
                TextUtils.info("§6Attempting to join F7...")
                TextUtils.sendCommand("joindungeon catacombs 7")
                return@executes 0
            })
        }
    }

    object M1Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("m1").executes {
                TextUtils.info("§6Attempting to join M1...")
                TextUtils.sendCommand("joindungeon master_catacombs 1")
                return@executes 0
            })
        }
    }

    object M2Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("m2").executes {
                TextUtils.info("§6Attempting to join M2...")
                TextUtils.sendCommand("joindungeon master_catacombs 2")
                return@executes 0
            })
        }
    }

    object M3Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("m3").executes {
                TextUtils.info("§6Attempting to join M3...")
                TextUtils.sendCommand("joindungeon master_catacombs 3")
                return@executes 0
            })
        }
    }

    object M4Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("m4").executes {
                TextUtils.info("§6Attempting to join M4...")
                TextUtils.sendCommand("joindungeon master_catacombs 4")
                return@executes 0
            })
        }
    }

    object M5Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("m5").executes {
                TextUtils.info("§6Attempting to join M5...")
                TextUtils.sendCommand("joindungeon master_catacombs 5")
                return@executes 0
            })
        }
    }

    object M6Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("m6").executes {
                TextUtils.info("§6Attempting to join M6...")
                TextUtils.sendCommand("joindungeon master_catacombs 6")
                return@executes 0
            })
        }
    }

    object M7Command {
        fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
            dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("m7").executes {
                TextUtils.info("§6Attempting to join M7...")
                TextUtils.sendCommand("joindungeon master_catacombs 7")
                return@executes 0
            })
        }
    }
}