Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Player p = (Player) sender;
  2.  
  3.  
  4.  
  5. if(cmd.getName().equalsIgnoreCase("unsterblich")){
  6. if(args.length == 0){
  7.  
  8. p.getInventory().removeItem(new ItemStack(264,1));
  9. p.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, 600, 10000));
  10. p.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 600, 10000));
  11. p.addPotionEffect(new PotionEffect(PotionEffectType.WATER_BREATHING, 600, 10000));
  12. p.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 600, 10000));
  13. p.sendMessage(ChatColor.GREEN + "[KitPvP]" + ChatColor.GOLD + "Du bist nun für 30 Sekunden Unsterblich");
  14.  
  15. return true;
  16. }else{
  17. p.sendMessage(ChatColor.GREEN+ "[KitPvP]" + ChatColor.GOLD + "Du besitzt keinen Diamanten");
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement