편지 차단 소스
프리서버 오픈소스 리니지 편지차단/차단 소스
public C_Exclude(byte[] decrypt, LineageClient client) {
super(decrypt);
String name = readS();
int Type= readC(); //스펨편지차단 1, 일반차단 0
if (name.isEmpty()) {
System.out.println("name:" + name);
return;
}
L1PcInstance pc = client.getActiveChar();
try {
if (Type== 0 || Type== 1){ //일반차단 스팸차단
L1ExcludingList exList = pc.getExcludingList();
if (exList.isFull()) {
pc.sendPackets(new S_ServerMessage(472)); // \f1차단된 유저가 너무
// 많습니다.
return;
}
if (exList.contains(name)) {
String temp = exList.remove(name);
pc.sendPackets(new S_PacketBox(S_PacketBox.REM_EXCLUDE, temp, Type));
} else {
exList.add(name);
pc.sendPackets(new S_PacketBox(S_PacketBox.ADD_EXCLUDE, name, Type));
}
//} else if (Type== 1){ //편지차단
// } else {
}
} catch (Exception e) {
_log.log(Level.SEVERE, e.getLocalizedMessage(), e);
}
}
출차: 프리린

아옳옳 님의 최근 댓글
감사합니다. 2018 05.05 감사합니다. 2018 03.20 감사합니다. 2018 03.20 감사합니다. 2018 03.20 감사합니다. 2018 03.20