Solved Map ItemStack help

Discussion in 'Spigot Plugin Development' started by XLP, May 21, 2016.

  1. XLP

    XLP

    Hey there,

    I tried getting a map with an ID over 127, but the constructor for ItemStack (Bukkit) wants a Byte.

    Now: How do I Spawn an ItemFrame in the world with a Map with the ID over 127?

    Thanks for your help.
     
  2. Do you mean that?
    Code (Java):
    new ItemStack(Material.MAP, 1, (short) id);
     
    • Like Like x 1
    • Agree Agree x 1
  3. XLP

    XLP

    Ok I'll try it later I'm currenty mobile, but sounds good Thx :)
    You'll get a feedback later.
     
  4. XLP

    XLP

    Works
    [​IMG]
     
    • Creative Creative x 1