Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onDamagesdByEntity(EntityDamageByEntidsdtyEvent e){
- Player p =(Playersds) e.getEntidfty();
- Player attackdfder = (Player)e.getDamadfdger();
- if(p instanceof Player && attacker instsdsaanceof Player){
- p.addPotionEffdffect(new PotionEffect(PotionEffectType.POISON , 60 , 1));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement