Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onDamageByEntity(EntityDamageByEntityEvent e){
- Player p =(Player) e.getEntity();
- Player attacker = (Player)e.getDamager();
- if(p instanceof Player && attacker instanceof Player){
- p.addPotionEffect(new PotionEffect(PotionEffectType.POISON , 60 , 1));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement