Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int random = new Random().nextInt(3);
- switch (random) {
- case 0:{
- Bukkit.broadcastMessage(" §d§lCASE§8 :: §fGracz §d" + player.getName() + " §fwylosowal §d6/3/3");
- ItemStack szostka = new ItemStack(Material.DIAMOND_PICKAXE);
- ItemMeta meta = szostka.getItemMeta();
- meta.setDisplayName(ChatColor.WHITE + "Kilof " + ChatColor.LIGHT_PURPLE + "6/3/3");
- meta.addEnchant(Enchantment.DIG_SPEED, 6, true);
- meta.addEnchant(Enchantment.LOOT_BONUS_BLOCKS, 3, true);
- meta.addEnchant(Enchantment.DURABILITY, 3, true);
- szostka.setItemMeta(meta);
- player.getInventory().addItem(szostka);
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement