Cannot Get Material Of Gunpowder

Discussion in 'Plugin Development' started by DutchJellyV2, Jul 3, 2020.

  1. Offline

    DutchJellyV2

    Hello,

    I have a simple but annoying issue. My plugin can't seem to find a material with the string value "GUNPOWDER". I'm using the Material.matchMaterial() method in 1.12.2. I'm not finding any other people with the same problem online, so I'm quickly asking here.

    Thanks in advance.
     
  2. Offline

    KarimAKL

  3. Offline

    The_Spaceman

    Prior to Minecraft 1.13 its indeed SULPHUR, in 1.13 Bukkit renamed all its Materials to match the MC name, so its now GUNPOWDER
     
  4. Offline

    Niv-Mizzet

    @DutchJellyV2 do you have the api-version set in plugin.yml?
     
  5. Offline

    KarimAKL

    @Niv-Mizzet
    There's no need to set the api-version in versions below 1.13.
     
  6. Offline

    Niv-Mizzet

Share This Page