Handler created for LFGmsg
This commit is contained in:
@@ -48,22 +48,6 @@ public class ClientMessagePump implements NetMsgHandler {
|
||||
this.server = server;
|
||||
}
|
||||
|
||||
private static void toggleLfgRecruiting(ToggleLfgRecruitingMsg msg, ClientConnection origin) throws MsgSendException {
|
||||
PlayerCharacter pc = SessionManager.getPlayerCharacter(origin);
|
||||
if (pc == null)
|
||||
return;
|
||||
int num = msg.toggleLfgRecruiting();
|
||||
if (num == 1)
|
||||
pc.toggleLFGroup();
|
||||
else if (num == 2)
|
||||
pc.toggleLFGuild();
|
||||
else if (num == 3)
|
||||
pc.toggleRecruiting();
|
||||
UpdateStateMsg rwss = new UpdateStateMsg();
|
||||
rwss.setPlayer(pc);
|
||||
DispatchMessage.dispatchMsgToInterestArea(pc, rwss, DispatchChannel.PRIMARY, MBServerStatics.CHARACTER_LOAD_RANGE, true, false);
|
||||
}
|
||||
|
||||
private static void toggleSitStand(ToggleSitStandMsg msg, ClientConnection origin) throws MsgSendException {
|
||||
PlayerCharacter pc = SessionManager.getPlayerCharacter(origin);
|
||||
if (pc == null)
|
||||
@@ -378,10 +362,6 @@ public class ClientMessagePump implements NetMsgHandler {
|
||||
break;
|
||||
case OPENVAULT:
|
||||
break;
|
||||
case MODIFYGUILDSTATE:
|
||||
ToggleLfgRecruitingMsg tlrm = (ToggleLfgRecruitingMsg) msg;
|
||||
toggleLfgRecruiting(tlrm, origin);
|
||||
break;
|
||||
case TOGGLESITSTAND:
|
||||
ToggleSitStandMsg tssm = (ToggleSitStandMsg) msg;
|
||||
toggleSitStand(tssm, origin);
|
||||
|
||||
Reference in New Issue
Block a user