Getting mod items on a KCauldron server (Spigot Plugin)

Discussion in 'Spigot Plugin Development' started by Airbornz, Apr 14, 2017.

  1. Hello,

    I'm trying to make a Spigot plugin that would require me to get a mod item (Running a KCauldron server), is there any way to do that if I have the item id? Would I use the deprecated 'int type' instead of providing a Material?

    Thanks!
     
  2. Not really the best place, also, the mirror where you downloaded Cauldron is "illegal". And KCauldron is so old, if you really want, use that ugly thing called Sponge.

    Back to topic, it would be interesting trying to debug here (like PlayerInteractEvent, getItem().getId), but i'm sure KCauldron has an implementation
     
  3. Material.forName("potential material name here"); should work
    Or Material.valueOf("potential material name here"); idk the method names exactly
     
  4. It won't work because the mods items aren't registred in the Material enum
     
  5. For this you should check out Sponge.
     
  6. It worked last time I used it