Advertisement
Dark_FX

Give player Item onPlayerJoin

Nov 7th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public void onPlayerjoin(PlayerJoinEvent e){
  2. Player p = e.getPlayer();
  3. ItemStack EBook = new ItemStack(Material.ENCHANTED_BOOK, 1);
  4. ItemMeta im = (BookMeta) EBook.getItemMeta();
  5. im.setDisplayName("Section Selector");
  6. List<String> lore = new ArrayList<String>();
  7. im.setLore(lore);
  8. lore.add("This is a Test lore, I will add A new one when I finsh it");
  9. p.getInventory().addItem(EBook);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement