Exemplo n.º 1
0
  @Override
  public void setFaction(String faction) {
    synchronized (objectMutex) {
      this.faction = faction;
    }

    notifyObservers(messageBuilder.buildFactionDelta(faction), true);
    // updatePvpStatus();
  }
Exemplo n.º 2
0
  @Override
  public void setFaction(String faction) {
    synchronized (objectMutex) {
      this.faction = faction;
    }

    notifyObservers(messageBuilder.buildFactionDelta(faction), true);

    CreatureObject companion = NGECore.getInstance().mountService.getCompanion(this);

    if (companion != null) {
      companion.setFaction(faction);
    }
  }