give

public static void give(Player player, ItemStack item)

Give a player an item and drop what doesn't fit.

Parameters

player

The player

item

The item to give