Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestDeleteBookMarkSlot

package l2p.gameserver.clientpackets;

import l2p.gameserver.model.L2Player;
import l2p.gameserver.serverpackets.ExGetBookMarkInfo;

public class RequestDeleteBookMarkSlot extends L2GameClientPacket
{
  private int slot;

  @Override
  public void readImpl()
  {
    slot = readD();
  }

  @Override
  public void runImpl()
  {
    L2Player activeChar = getClient().getActiveChar();
    if(activeChar != null)
    {
      //TODO Msg.THE_SAVED_TELEPORT_LOCATION_WILL_BE_DELETED_DO_YOU_WISH_TO_CONTINUE
      activeChar.bookmarks.remove(slot);
      activeChar.sendPacket(new ExGetBookMarkInfo(activeChar));
    }
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestDeleteBookMarkSlot

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.