BookMeta

Discussion in 'Plugin Development' started by guitargun, Oct 27, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    guitargun

    I am giving a player a written book. either this is a dummy book or is an actual book where stuff is written in.
    but every book has the same by "title" Original.
    is there a way to remove this?
     
  2. Offline

    DoggyCode™

  3. Offline

    guitargun

    @DoggyCode™ how is this helping me? I already now the methods but I can't get rid of the "by <author> original"
     
  4. Offline

    DoggyCode™

    Then you should probably know that

    setAuthor(null);

    Can return null (which removes the author)
     
  5. Offline

    guitargun

    @DoggyCode™ I tried that but that still gives by <blank> original
     
  6. Offline

    DoggyCode™

    Did you actually write

    null

    ?
    Not "null" not "" but

    null

    ?
     
  7. Offline

    guitargun

    yup I did this:
    Code:
                BookMeta meta = (BookMeta) enchanting.getItemMeta();
                meta.setAuthor(null);
                enchanting.setItemMeta(meta)
    came out as:
    [​IMG]
     
  8. Offline

    Irantwomiles

    Try setting it to an empty string
     
  9. Offline

    guitargun

    @Irantwomiles please read what I already did try then think again about the answer you gave me.

    to any mod/admin please close this thread. I will try another way hoping that will work
     
  10. Offline

    Scimiguy

    Next time, use the report button to request a lock
     
Thread Status:
Not open for further replies.

Share This Page