Advertisement
Chiddix

ArcherKit

Feb 9th, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.36 KB | None | 0 0
  1. package me.rabrg.unknown.kit.impl;
  2.  
  3. import org.bukkit.Material;
  4. import org.bukkit.inventory.Inventory;
  5. import org.bukkit.inventory.ItemStack;
  6. import org.bukkit.permissions.Permission;
  7. import org.bukkit.potion.PotionEffect;
  8. import org.bukkit.potion.PotionEffectType;
  9.  
  10. import me.rabrg.unknown.kit.Kit;
  11.  
  12. public final class ArcherKit implements Kit {
  13.  
  14.     @Override
  15.     public Permission getPermission() {
  16.         return new Permission("rabrg.unknown.kit.archer");
  17.     }
  18.  
  19.     @Override
  20.     public Material getIcon() {
  21.         return Material.BOW;
  22.     }
  23.  
  24.     @Override
  25.     public String getName() {
  26.         return "Archer";
  27.     }
  28.  
  29.     @Override
  30.     public String getDescription() {
  31.         return "Rain death upon your enemies!";
  32.     }
  33.  
  34.     @Override
  35.     public ItemStack[] getArmour() {
  36.         return new ItemStack[] { new ItemStack(Material.IRON_HELMET), new ItemStack(Material.LEATHER_CHESTPLATE), new ItemStack(Material.CHAINMAIL_LEGGINGS), new ItemStack(Material.GOLD_BOOTS)  };
  37.     }
  38.  
  39.     @Override
  40.     public Inventory getInventory(final Inventory inventory) {
  41.         inventory.setItem(0, new ItemStack(Material.IRON_SWORD));
  42.         inventory.setItem(8, new ItemStack(Material.BOW));
  43.         return null;
  44.     }
  45.  
  46.     @Override
  47.     public int getSoupCount() {
  48.         return 16;
  49.     }
  50.  
  51.     @Override
  52.     public PotionEffect[] getPotionEffects() {
  53.         return new PotionEffect[] { new PotionEffect(PotionEffectType.SPEED, Integer.MAX_VALUE, 1, true) };
  54.     }
  55.  
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement