Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. for (Entity e : p.getNearbyEntities(12,12,12)) {
  2. if (e instanceof Player) {
  3. Player inFaction = (Player)e;
  4. //Check if that player is in the faction
  5. //IF they are
  6. inFaction.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE,20*8,0));
  7.  
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement