Solved Books event

Discussion in 'Spigot Plugin Development' started by forseth11, Jun 11, 2016.

  1. How do I use PlayerEditBookEvent?
    I tried this:
    Code (Text):
    @EventHandler
    public void book(PlayerEditBookEvent event){
        event.getPlayer().sendMessage("EDIT");
        System.out.println("EDIT!!!!");
    }
    But it will not work.

    I have another event in the same class which works, but this does not seem to work. Try it out and let me know if it works for you. I tried in 1.9, 1.9.4, and 1.10 version of spigot.
     
  2. md_5

    Administrator Developer

    It's currently not supported in 1.9 / 1.10
     
    • Informative Informative x 1
  3. Why not?
     
  4. #4 BillyGalbreath, Jun 11, 2016
    Last edited: Jun 11, 2016
  5. Is there a work around perhaps? Can it be deceperated then?

    Would it be possible to check when the item held is changed and change the lore once the book is noticed by the plugin?
     
  6. md_5

    Administrator Developer

    Fernflower has gone back to being deterministic for this section.
    It's fixed in 1.10 - builds #861 and above.
     
    • Winner Winner x 1