Package com.dthielke.herochat

Examples of com.dthielke.herochat.Chatter


  {
    Player player = event.getSender().getPlayer();
   
    String format = this.applyFormat(event.getFormat(), event.getBukkitFormat(), player);
   
    Chatter sender = Herochat.getChatterManager().getChatter(player);
   
    // NOTE: This line is not standard deobfuscation. It's altered to achieve the recipient limitations.
    Set<Player> recipients = this.getRecipients(player);
   
    this.trimRecipients(recipients, sender);
View Full Code Here


   
    Set<Chatter> members = this.getMembers();
    Iterator<Player> iterator = recipients.iterator();
    while(iterator.hasNext())
    {
      Chatter recipient = Herochat.getChatterManager().getChatter(iterator.next());
      if (recipient == null) continue;
      World recipientWorld = recipient.getPlayer().getWorld();
     
      if (!members.contains(recipient))
        iterator.remove();
      else if ((isLocal()) && (!sender.isInRange(recipient, this.getDistance())))
        iterator.remove();
      else if (!hasWorld(recipientWorld))
        iterator.remove();
      else if (recipient.isIgnoring(sender))
        iterator.remove();
      else if ((!this.isCrossWorld()) && (!world.equals(recipientWorld)))
        iterator.remove();
    }
  }
View Full Code Here

TOP

Related Classes of com.dthielke.herochat.Chatter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.