Mojira Archive
MC-187850

"run_command" clickEvent doesn't work in written books if chat is hidden

The bug

"run_command" clickEvents don't work in written books if chat is set to "Hidden" in chat settings. Signs are not affected.

How to reproduce

  1. Give yourself a written book with a "run_command" clickEvent:
    /give @s written_book[written_book_content={title:MC-187850,author:j_p_smith,pages:['{"text":"Test","clickEvent":{"action":"run_command","value":"/give @p stone"}}']}]
  2. Open the written book and click on the word "Test"
    You are given a block of stone
  3. Set chat to "Hidden" in chat settings
  4. Open the written book and click on the word "Test" again
    You are not given a block of stone