Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

How to summon an item in bukkit

public void onPlayerJoin(final PlayerJoinEvent e) {
Player p  = e.getPlayer();
p.getWorld().dropItemNaturally(p.getLocation(), new ItemStack(Material.LEVER)); // drops a lever at his location..
}
Source by bukkit.org #
 
PREVIOUS NEXT
Tagged: #How #summon #item #bukkit
ADD COMMENT
Topic
Name
1+7 =