Package l2p.gameserver.serverpackets

Source Code of l2p.gameserver.serverpackets.ManagePledgePower

package l2p.gameserver.serverpackets;

import l2p.gameserver.model.L2Clan.RankPrivs;
import l2p.gameserver.model.L2Player;

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

  public ManagePledgePower(L2Player 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 l2p.gameserver.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.