Skip to content

feat: input_chat_str command for raw string chat input - #7

Merged
By1337 merged 1 commit into
By1337:masterfrom
Rizzener:input-chat-str
Sep 6, 2026
Merged

By1337 merged 1 commit into
By1337:masterfrom
Rizzener:input-chat-str

Conversation

@Rizzener

@Rizzener Rizzener commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Adds an input_chat_str command, mirroring input_chat but storing the raw player input as a string argument instead of parsing it as a number via FastExpressionParser.

Usage

on_click:
  - input_chat_str:
      param: 'str_result'
      on_pass:
        - '&aYou said: {str_result}'
      on_failed:
        - '&cInput cancelled'
  • Input via chat or command; the leading / from command input is stripped
  • null input (timeout/quit/override) triggers on_failed, same as input_chat
  • New handler: PlayerStringInput, an exact structural mirror of PlayerNumberInput (same codec pattern, tracer style, error message)
  • Registered in Commands#decode next to input_chat
  • Example added to menu/debug.yml

Verified: mvn clean package passes; codec decode matrix (valid config, missing fields, int coercion) behaves identically to input_chat.

Adds input_chat_str, mirroring input_chat but storing the raw player input as a string argument instead of parsing it as a number. Input via chat or command; leading '/' from command input is stripped. Null input (timeout/quit) triggers on_failed.
@By1337
By1337 merged commit f33c37b into By1337:master Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants