Reformat and clean up "net" package
This commit is contained in:
@@ -27,15 +27,16 @@ import net.packet.InPacket;
|
||||
import tools.PacketCreator;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Ubaware
|
||||
*/
|
||||
public final class OpenFamilyPedigreeHandler extends AbstractPacketHandler {
|
||||
@Override
|
||||
public final void handlePacket(InPacket p, Client c) {
|
||||
if(!YamlConfig.config.server.USE_FAMILY_SYSTEM) return;
|
||||
if (!YamlConfig.config.server.USE_FAMILY_SYSTEM) {
|
||||
return;
|
||||
}
|
||||
Character target = c.getChannelServer().getPlayerStorage().getCharacterByName(p.readString());
|
||||
if(target != null && target.getFamily() != null) {
|
||||
if (target != null && target.getFamily() != null) {
|
||||
c.sendPacket(PacketCreator.showPedigree(target.getFamilyEntry()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user