package net.sf.l2j.gameserver.clientpackets; import java.nio.ByteBuffer; import java.util.logging.Logger; import net.sf.l2j.gameserver.ClientThread; public class RequestPetition extends ClientBasePacket { private static final String _C__7F_REQUESTPETITION = "[C] 7F RequestPetition"; private static Logger _log = Logger.getLogger(RequestPetition.class.getName()); private String _petitionText; private int _petitionType; public RequestPetition(ByteBuffer buf, ClientThread client) { super(buf,client); _petitionText = readS(); _petitionType = readD(); } void runImpl() { String tmpMsg = new String("Petition recived:\n"); tmpMsg += "------------------------------\n"; tmpMsg += "Account: "+ getClient().getLoginName() + "\n"; tmpMsg += "Character: " + getClient().getActiveChar().getName() + "\n"; tmpMsg += "------------------------------\n"; tmpMsg += _petitionText + "\n"; tmpMsg += "------------------------------\n"; _log.info(tmpMsg); } public String getType() { return _C__7F_REQUESTPETITION; } }