When I try to give me a map created before with this code:
private void giveMap(Player player, int number) { ItemStack myMap= new ItemStack(Material.MAP, 1); myMap.setDurability((short) (number) ); player.getInventory().addItem(myMap); }
so I use:
/giveMap 5
/giveMap 6
/giveMap 7
/giveMap 8
but is always giving an empty map
I used this exact code in 1.9.4 and it works