Solved Missing materials in Material class CraftBukkit 1.10.2

Discussion in 'Bukkit Help' started by xXx_LOLcat_xXx, Oct 8, 2016.

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

    xXx_LOLcat_xXx

    For example I can not find Material.CHEST or Material.MAGMA in craftbukkit 1.10

    EDIT:
    oops wrong material inport
    I used
    net.minecraft.server.v1_10_R1.Material instead of
    org.bukkit.Material;
     
    Last edited: Oct 8, 2016
  2. @xXx_LOLcat_xXx
    I can find them just fine, there's two possibilities:
    1. You haven't added the craftbukkit jar to your project properly
    2. Your jar is incomplete (IE BuildTools somehow screwed up)
    What I'd do is make sure you added the craftbukkit jar correctly, and if you are sure, try using BuildTools to get a new jar.
     
  3. Offline

    I Al Istannen

    @AlvinB @xXx_LOLcat_xXx
    I thought there is only "org.bukkit.Material"? No craftbukkit involved.

    @xXx_LOLcat_xXx
    Could you post the error your IDE gives? And please try "org.bukkit.Material.CHEST" and report if there is an error with this too.
     
    xXx_LOLcat_xXx likes this.
  4. @I Al Istannen
    Well, I mean the jar into his IDE, I assumed he'd be using craftbukkit.jar and not bukkit.jar
     
  5. Offline

    I Al Istannen

    @AlvinB
    Yea, makes sense in hindsight :p But in my defense, he probably doesn't need CraftBukkit ;)
     
  6. Offline

    oceantheskatr

    Did you remember to actually import the 1.10 library? I forgot that I didnt and only had the 1.8 one lol. Check to make sure ;)
     
  7. Offline

    xXx_LOLcat_xXx

    @xXx_LOLcat_xXx
    Could you post the error your IDE gives? And please try "org.bukkit.Material.CHEST" and report if there is an error with this too.[/QUOTE]

    Thank you.
    I was using the wrong import:p.
     
  8. Offline

    I Al Istannen

    @xXx_LOLcat_xXx
    I see xD
    No problem, glad I could help :)

    This problem will most likely occur sometimes in the future, so make sure to check the imports. These errors are extremly sneaky though and often hard to realize ;)
     
    xXx_LOLcat_xXx likes this.
Thread Status:
Not open for further replies.

Share This Page