The constructor ItemStack(int, int) is undefined

Discussion in 'Plugin Development' started by NightTerror, Dec 30, 2021.

  1. Offline

    NightTerror

    Updating an old plugin and I ran into this error
    Code:
    The constructor ItemStack(int, int) is undefined
    in this line:
    Code:
     player.getInventory().addItem(new ItemStack(allInt, plugin.kitData.getInt("kits." + plugin.playerKit.get(player) + ".items." + all)));
    I've tried a bunch of things but I can't seem to fix it
     
  2. Offline

    timtower Administrator Administrator Moderator

Share This Page