The constructor ItemStack(int, int) is undefined

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

Thread Status:
Not open for further replies.
  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. Online

    timtower Administrator Administrator Moderator

Thread Status:
Not open for further replies.

Share This Page