forked from MagicBane/Server
Handler created for ServerInfoMsg
This commit is contained in:
@@ -21,7 +21,6 @@ import engine.net.NetMsgHandler;
|
||||
import engine.net.client.ClientConnection;
|
||||
import engine.net.client.Protocol;
|
||||
import engine.net.client.msg.ClientNetMsg;
|
||||
import engine.net.client.msg.ServerInfoMsg;
|
||||
import engine.net.client.msg.login.*;
|
||||
import engine.objects.Account;
|
||||
import engine.objects.GuildStatusController;
|
||||
@@ -73,10 +72,6 @@ public class LoginServerMsgHandler implements NetMsgHandler {
|
||||
try {
|
||||
|
||||
switch (protocolMsg) {
|
||||
case SELECTSERVER:
|
||||
this.SendServerInfo(origin);
|
||||
break;
|
||||
|
||||
case CREATECHAR:
|
||||
this.CommitNewCharacter((CommitNewCharacterMsg) clientNetMsg, origin);
|
||||
break;
|
||||
@@ -142,16 +137,6 @@ public class LoginServerMsgHandler implements NetMsgHandler {
|
||||
}
|
||||
}
|
||||
|
||||
private void SendServerInfo(ClientConnection conn) {
|
||||
ServerInfoMsg sim = new ServerInfoMsg();
|
||||
|
||||
if (!conn.sendMsg(sim)) {
|
||||
Logger.error("Failed to send message");
|
||||
|
||||
this.KickToLogin(MBServerStatics.LOGINERROR_UNABLE_TO_LOGIN, "Unable to send ServerInfoMsg to client.", conn);
|
||||
}
|
||||
}
|
||||
|
||||
private void CommitNewCharacter(CommitNewCharacterMsg commitNewCharacterMessage, ClientConnection clientConnection) {
|
||||
|
||||
Session session = SessionManager.getSession(clientConnection);
|
||||
|
||||
Reference in New Issue
Block a user