Solved 1.9 Sounds?

Discussion in 'Plugin Development' started by TheDiamond06, Mar 27, 2016.

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

    TheDiamond06

    I am very confused on what 1.9 did to sounds.
    I have the normal playsound:
    Code:
    Player#playerSound(Player#getLocation(), Sound.CHEST_OPEN, 1, 1);
    
    However CHEST_OPEN is turning red saying it is not a field. I tried finding another post like this about sound changes in 1.9 but I can not seem to find them. What is going on here and what has changed with sounds?
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    TheDiamond06

    Thank you for your fast response, but these enums are not seeming to work either with Sound. When I do Sound. in eclipse it shows the original 1.8 sounds still, however I am using this version of 1.9.

    When I try BLOCK_CHEST_OPEN it does not seem to work either, giving the same error.

    EDIT: Hmmm, I don't know what I did but I just removed and re-installed the reference library of that jar version, well now those new enums are showing un-like before. Thanks for your help I guess.
     
    Last edited by a moderator: Mar 27, 2016
Thread Status:
Not open for further replies.

Share This Page