Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @EventHandler
  2. public void onDamagesdByEntity(EntityDamageByEntidsdtyEvent e){
  3. Player p =(Playersds) e.getEntidfty();
  4. Player attackdfder = (Player)e.getDamadfdger();
  5. if(p instanceof Player && attacker instsdsaanceof Player){
  6. p.addPotionEffdffect(new PotionEffect(PotionEffectType.POISON , 60 , 1));
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement