Package l2p.gameserver.clientpackets

Source Code of l2p.gameserver.clientpackets.RequestExRequestSentPostList

package l2p.gameserver.clientpackets;

import l2p.Config;
import l2p.gameserver.model.L2Player;
import l2p.gameserver.serverpackets.ExShowSentPostList;

/**
* Нажатие на кнопку "sent mail",запрос списка исходящих писем.
* В ответ шлется {@link ExShowSentPostList}
*/
public class RequestExRequestSentPostList extends L2GameClientPacket
{
  @Override
  public void readImpl()
  {
    //just a trigger
  }

  @Override
  public void runImpl()
  {
    if(!Config.MailAllow)
    {
      return;
    }
    L2Player cha = getClient().getActiveChar();
    if(cha != null)
    {
      cha.sendPacket(new ExShowSentPostList(cha));
    }
  }
}
TOP

Related Classes of l2p.gameserver.clientpackets.RequestExRequestSentPostList

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.