Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player p = (Player) sender;
- if(cmd.getName().equalsIgnoreCase("unsterblich")){
- if(args.length == 0){
- p.getInventory().removeItem(new ItemStack(264,1));
- p.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, 600, 10000));
- p.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 600, 10000));
- p.addPotionEffect(new PotionEffect(PotionEffectType.WATER_BREATHING, 600, 10000));
- p.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 600, 10000));
- p.sendMessage(ChatColor.GREEN + "[KitPvP]" + ChatColor.GOLD + "Du bist nun für 30 Sekunden Unsterblich");
- return true;
- }else{
- p.sendMessage(ChatColor.GREEN+ "[KitPvP]" + ChatColor.GOLD + "Du besitzt keinen Diamanten");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement