File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
src/main/kotlin/com/mairwunnx/projectessentials/home/commands Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -27,5 +27,12 @@ inline val homeLiteral: LiteralArgumentBuilder<CommandSource>
2727 } else emptyList<String >()
2828 }, builder
2929 )
30- }
31- )
30+ }.executes { HomeCommand .process(it) }
31+ ).executes { HomeCommand .process(it) }
32+
33+ inline val setHomeLiteral: LiteralArgumentBuilder <CommandSource >
34+ get() = literal<CommandSource >(" set-home" ).then(
35+ Commands .argument(
36+ " home" , StringArgumentType .string()
37+ ).executes { SetHomeCommand .process(it) }
38+ ).executes { SetHomeCommand .process(it) }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import com.mairwunnx.projectessentials.home.teleportToHome
1212import com.mojang.brigadier.context.CommandContext
1313import net.minecraft.command.CommandSource
1414
15- object HomeCommand : CommandBase(homeLiteral) {
15+ object HomeCommand : CommandBase(homeLiteral, false ) {
1616 override val name = " home"
1717 override fun process (context : CommandContext <CommandSource >) = 0 .also {
1818 fun out (status : String , vararg args : String ) = MessagingAPI .sendMessage(
You can’t perform that action at this time.
0 commit comments