Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (args.length == 1 && sender.hasPermission("skit.give.other")) {
- Player target = Bukkit.getPlayer(args[0]);
- ((HumanEntity) target).getInventory().clear();
- ((HumanEntity) target).getEnderChest().clear();
- ((Player) target).setLevel(0);
- ((Player) target).setExp(0);
- ((Player) target).setFoodLevel(40);
- ((Player) target).setHealth(20);
- //Book
- ItemStack book = new ItemStack(Material.WRITTEN_BOOK);
- BookMeta meta = (BookMeta) book.getItemMeta();
- meta.setAuthor("Vroengard");
- meta.setDisplayName("§aVroengard Info Buch");
- meta.addPage("§cComing Soon");
- meta.addPage("§cComing Soon");
- meta.addPage("§cComing Soon");
- meta.addPage("§cComing Soon");
- meta.addPage("§cComing Soon");
- meta.addPage("§cComing Soon");
- meta.addPage("§9Ich sags doch..." + "\n" + "§cComing Soon");
- book.setItemMeta(meta);
- ((HumanEntity) target).getInventory().setItem(7, book);
- //Sword
- ItemStack sword = new ItemStack(Material.IRON_SWORD);
- ItemMeta swordmeta = sword.getItemMeta();
- swordmeta.setDisplayName("§aDein erstes Schwert");
- ArrayList<String> swordlore = new ArrayList<>();
- swordmeta.setLore(swordlore);
- swordmeta.addEnchant(Enchantment.DAMAGE_ALL, 1, true);
- swordmeta.addEnchant(Enchantment.DURABILITY, 1, true);
- sword.setItemMeta(swordmeta);
- ((HumanEntity) target).getInventory().setItem(0, sword);
- //Pickaxe
- ItemStack pickaxe = new ItemStack(Material.IRON_PICKAXE);
- ItemMeta pickaxemeta = pickaxe.getItemMeta();
- pickaxemeta.setDisplayName("§aDeine erste Spitzhacke");
- ArrayList<String> pickaxelore = new ArrayList<>();
- pickaxemeta.setLore(pickaxelore);
- pickaxemeta.addEnchant(Enchantment.DIG_SPEED, 1, true);
- pickaxemeta.addEnchant(Enchantment.DURABILITY, 1, true);
- pickaxe.setItemMeta(pickaxemeta);
- ((HumanEntity) target).getInventory().setItem(1, pickaxe);
- //Axe
- ItemStack axe = new ItemStack(Material.IRON_AXE);
- ItemMeta axemeta = pickaxe.getItemMeta();
- axemeta.setDisplayName("§aDeine erste Axt");
- ArrayList<String> axelore = new ArrayList<>();
- axemeta.setLore(axelore);
- axemeta.addEnchant(Enchantment.DIG_SPEED, 1, true);
- axemeta.addEnchant(Enchantment.DURABILITY, 1, true);
- axe.setItemMeta(axemeta);
- ((HumanEntity) target).getInventory().setItem(2, axe);
- //Shovel
- ItemStack shovel = new ItemStack(Material.IRON_SPADE);
- ItemMeta shovelmeta = shovel.getItemMeta();
- shovelmeta.setDisplayName("§aDeine erste Schaufel");
- ArrayList<String> shovellore = new ArrayList<>();
- shovelmeta.setLore(shovellore);
- shovelmeta.addEnchant(Enchantment.DIG_SPEED, 1, true);
- shovelmeta.addEnchant(Enchantment.DURABILITY, 1, true);
- shovel.setItemMeta(shovelmeta);
- ((HumanEntity) target).getInventory().setItem(3, shovel);
- //Steak
- ItemStack steak = new ItemStack(Material.COOKED_BEEF, 64);
- ItemMeta steakmeta = steak.getItemMeta();
- steakmeta.setDisplayName("§aDein erstes Essen");
- steak.setItemMeta(steakmeta);
- ((HumanEntity) target).getInventory().setItem(4, steak);
- //Diamond
- ItemStack dia = new ItemStack(Material.DIAMOND);
- ItemMeta diameta = dia.getItemMeta();
- diameta.setDisplayName("§aS§bU§cP§dE§eR §1T§2O§3L§4§5L§6E§aR §bS§cU§dP§1E§2R §3D§4I§5A§6M§aA§bN§cT");
- ArrayList<String> dialore = new ArrayList<>();
- diameta.addEnchant(Enchantment.LUCK, 10, true);
- dialore.add("§aCraftItem");
- diameta.setLore(dialore);
- dia.setItemMeta(diameta);
- ((HumanEntity) target).getInventory().setItem(8, dia);
- //Bread Enderchest
- ItemStack bread = new ItemStack(Material.BREAD, 5);
- ItemMeta breadmeta = bread.getItemMeta();
- breadmeta.setDisplayName("§4DEIN LETZTES ESSEN §cD:");
- bread.setItemMeta(breadmeta);
- ((HumanEntity) target).getEnderChest().addItem(bread);
- //helmet
- ItemStack helmet = new ItemStack(Material.LEATHER_HELMET);
- ItemMeta helmetmeta = helmet.getItemMeta();
- helmetmeta.setDisplayName("§aDein erster Helm");
- ArrayList<String> helmetlore = new ArrayList<>();
- helmetmeta.setLore(helmetlore);
- helmetmeta.addEnchant(Enchantment.PROTECTION_ENVIRONMENTAL, 1, true);
- helmetmeta.addEnchant(Enchantment.DURABILITY, 1, true);
- helmet.setItemMeta(helmetmeta);
- ((HumanEntity) target).getInventory().setHelmet(helmet);
- //Chestplate
- ItemStack chestplate = new ItemStack(Material.LEATHER_CHESTPLATE);
- ItemMeta chestplatemeta = chestplate.getItemMeta();
- chestplatemeta.setDisplayName("§aDein erster Brustpanzer");
- ArrayList<String> chestplatelore = new ArrayList<>();
- chestplatemeta.setLore(chestplatelore);
- chestplatemeta.addEnchant(Enchantment.PROTECTION_ENVIRONMENTAL, 1, true);
- chestplatemeta.addEnchant(Enchantment.DURABILITY, 1, true);
- chestplate.setItemMeta(chestplatemeta);
- ((HumanEntity) target).getInventory().setChestplate(chestplate);
- //Leggings
- ItemStack leggins = new ItemStack(Material.LEATHER_LEGGINGS);
- ItemMeta legginsmeta = leggins.getItemMeta();
- legginsmeta.setDisplayName("§aDeine erste Hose");
- ArrayList<String> leginslore = new ArrayList<>();
- legginsmeta.setLore(leginslore);
- legginsmeta.addEnchant(Enchantment.PROTECTION_ENVIRONMENTAL, 1, true);
- legginsmeta.addEnchant(Enchantment.DURABILITY, 1, true);
- leggins.setItemMeta(legginsmeta);
- ((HumanEntity) target).getInventory().setLeggings(leggins);
- //Boots
- ItemStack boots = new ItemStack(Material.LEATHER_BOOTS);
- ItemMeta bootsmeta = boots.getItemMeta();
- bootsmeta.setDisplayName("§aDeine ersten Schuhe");
- ArrayList<String> bootslore = new ArrayList<>();
- bootsmeta.setLore(bootslore);
- bootsmeta.addEnchant(Enchantment.PROTECTION_ENVIRONMENTAL, 1, true);
- bootsmeta.addEnchant(Enchantment.DURABILITY, 1, true);
- boots.setItemMeta(bootsmeta);
- ((HumanEntity) target).getInventory().setBoots(boots);
- target.sendMessage("§9[§aVroengard§9] §aDein Inventar wurde von §9" + sender.getName() + " §agelöscht und es wurde ein Starterkit geladen!");
- sender.sendMessage("§9[§aVroengard§9] §aDu hast das Inventar von §9" + target.getName() + " §agelöscht und ein Starterkit geladen!");
- return true;
- } else {
- sender.sendMessage("§9[§aVroengard§9] §aStarterkit Plugin von fantahund" + "\n" +
- "§9/skit give§a: lädt ein starterkit" + "\n" +
- "§9/skit NAME§a Lädt das Starterkit bei einem Spieler!");
- }
- return true;
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement