Skip to content

Instantly share code, notes, and snippets.

@apple502j
Created May 20, 2022 10:43
Show Gist options
  • Save apple502j/5c62f46b4f679569e77276f0b82c132e to your computer and use it in GitHub Desktop.
Save apple502j/5c62f46b4f679569e77276f0b82c132e to your computer and use it in GitHub Desktop.

Chat API test cases

Assumptions

  • No mods add a command taking multiple message arguments. (Implicitly enforced by the game.)

Test cases

  • Sending a chat message through: Chat, /say, /msg
  • Chat preview: integrated (no preview), disabled, enabled
  • Execution delay: instant, 500ms (does not trigger re-preview), 2000ms (triggers re-preview)
  • Signing: no (missing key/dev env), no (does not have preview), yes
  • Command executor: none (command block), single (player-sent), others (/execute on other player), entities (/execute on non-player), multiple (/execute with multiple entities)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment