Package lineage2.gameserver.network.serverpackets

Source Code of lineage2.gameserver.network.serverpackets.ManagePledgePower

package lineage2.gameserver.network.serverpackets;

import lineage2.gameserver.model.Player;
import lineage2.gameserver.model.pledge.RankPrivs;

public class ManagePledgePower extends L2GameServerPacket
{
  private int _action, _clanId, privs;

  public ManagePledgePower(Player player, int action, int rank)
  {
    _clanId = player.getClanId();
    _action = action;
    RankPrivs temp = player.getClan().getRankPrivs(rank);
    privs = temp == null ? 0 : temp.getPrivs();
    player.sendPacket(new PledgeReceiveUpdatePower(privs));
  }

  @Override
  protected final void writeImpl()
  {
    writeC(0x2a);
    writeD(_clanId);
    writeD(_action);
    writeD(privs);
  }
}
TOP

Related Classes of lineage2.gameserver.network.serverpackets.ManagePledgePower

TOP
Copyright © 2018 www.massapi.com. 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.