My custom command in my mod doesn't work. #1329
Answered
by
haykam821
yliu7949
asked this question in
Mod Dev Support
-
Beta Was this translation helpful? Give feedback.
Answered by
haykam821
Feb 22, 2021
Replies: 1 comment 1 reply
-
You are closing the builder for the Instead, use this: dispatcher.register(literal("sing")
.then(argument("message", greedyString())
.executes { context -> sing(context.source, getString(context,"message")) })) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yliu7949
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are closing the builder for the
message
argument too early for theexecutes
to apply to it. Instead, thesing
method will run for/sing
only.Instead, use this: