Package marauroa.common.net.message

Examples of marauroa.common.net.message.MessageS2CCreateAccountACK


        }
        /* Account was created */
        case S2C_CREATEACCOUNT_ACK:
          logger.debug("Create account ACK");

          MessageS2CCreateAccountACK msgack = (MessageS2CCreateAccountACK) msg;
          result = new AccountResult(Result.OK_CREATED, msgack.getUsername());

          received++;
          break;

        /* Account was not created. Reason explained on event. */
 
View Full Code Here


        /*
         * If result is OK then the account was created and we notify
         * player about that.
         */
        logger.debug("Account (" + username + ") created.");
        MessageS2CCreateAccountACK msgCreateAccountACK = new MessageS2CCreateAccountACK(
            message.getSocketChannel(), val.getUsername());
        msgCreateAccountACK.setProtocolVersion(message.getProtocolVersion());
        netMan.sendMessage(msgCreateAccountACK);
      } else {
        /*
         * Account creation may also fail. So expose the reasons of the
         * failure.
 
View Full Code Here

TOP

Related Classes of marauroa.common.net.message.MessageS2CCreateAccountACK

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.