Set item on slot 1?

Discussion in 'Plugin Development' started by iAmGuus, May 30, 2014.

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

    Konkz

    This line:
    You are saying there is an error, but now you're saying there isn't?
     
  2. Offline

    iAmGuus

    You gave a way to bypass it. But then it gave a error at the part where i should set the player. But i already fixed it. And it didnt work also. :(
    I think there is a bugg in my KitPvP Plugin.
     
  3. Offline

    gamemster2468

    Count back wards, so let's say you want an iron sword to be in the FIRST slot of the inventory do -

    p.getInventory.setItem(0, new ItemStack(Material.IRON_SWORD);
     
Thread Status:
Not open for further replies.

Share This Page