Advertisement
maxthelinkfan

Untitled

Jan 16th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.00 KB | None | 0 0
  1. public void sendKitMessage(Player p, String kit) {
  2.         p.sendMessage(ChatColor.GREEN + "[HG-Kits] " + ChatColor.RED + "You have equipped kit " + kit + "!");
  3.     }
  4.    
  5.     public void sendOneKitPerLifeMessage(Player p) {
  6.         p.sendMessage(ChatColor.GREEN + "[HG-Kits] " + ChatColor.RED + "You can only have one kit per life!");
  7.     }
  8.    
  9.     public void givePvP(Player p) {
  10.         Inventory inv = p.getInventory();
  11.         inv.clear();
  12.         ItemStack Stone = new ItemStack(Material.STONE_SWORD);         
  13.             ItemMeta mStone = Stone.getItemMeta();
  14.             mStone.setDisplayName(ChatColor.GREEN + "PvP Sword");
  15.             Stone.setItemMeta(mStone);
  16.             inv.addItem(Stone);
  17.             ItemStack getSoup = new ItemStack(Material.MUSHROOM_SOUP, 1);          
  18.             for(int i=1; i <=35; i++){
  19.                 ItemMeta mgetSoup = getSoup.getItemMeta();
  20.                 mgetSoup.setDisplayName(ChatColor.RED + "HG-Kits Soup");
  21.                 getSoup.setItemMeta(mgetSoup);
  22.                 inv.addItem(getSoup);
  23.            
  24.            
  25.         }
  26.     }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement