Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Books in book.txt do not work

Open FishbirdDD opened this issue 3 years ago • 1 comments

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?id=377206bc9a9649cd8d67b0685541bdf8

Error log (if applicable)

No response

Bug description

When giving myself a book defined in book.txt, it says "invalid book tag".

Book.txt: #starter This is the starter book

Command: /i writtenbook 1 book:starter

Result: image

However, if I give myself a writable book instead, the text shows (typing /book switches it back and forth between a written and writable book, and the text switches back and forth between the intended text and "invalid book tag"). image

Thanks!

Steps to reproduce

  1. Define a book in book.txt
  2. Use the command /give <player> writtenbook 1 book:<bookname>
  3. Observe the "invalid book tag" error

Expected behaviour

The text will show

Actual behaviour

The "invalid book tag" error shows

FishbirdDD avatar May 22 '22 02:05 FishbirdDD

Confirmed on 2.20.0-dev+5-d891268

pop4959 avatar May 22 '22 05:05 pop4959