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);
}
}