Package marauroa.common.net.message

Examples of marauroa.common.net.message.MessageS2CCreateCharacterNACK


          break;

        /* Account was not created. Reason explained on event and return. */
        case S2C_CREATECHARACTER_NACK:
          logger.debug("Create character NACK");
          MessageS2CCreateCharacterNACK reply = (MessageS2CCreateCharacterNACK) msg;

          result = new CharacterResult(reply.getResolutionCode(), character, template);
          return result;
      }
    }

    return result;
View Full Code Here


          return;
        }
        int maxNumberOfCharacters = Configuration.getConfiguration().getInt("limit_characters_per_account", Integer.MAX_VALUE);
        if (entry.characterCounter >= maxNumberOfCharacters) {
          Result result = Result.FAILED_TOO_MANY;
          MessageS2CCreateCharacterNACK msgCreateCharacterNACK = new MessageS2CCreateCharacterNACK(channel, result);
          msgCreateCharacterNACK.setClientID(clientid);
          msgCreateCharacterNACK.setProtocolVersion(protocolVersion);
          netMan.sendMessage(msgCreateCharacterNACK);
          return;
        }

        createCharacter(entry.username, character, template, clientid, address, channel,
View Full Code Here

    } else {
      /*
       * It also may fail to create the character. Explain the reasons
       * to player.
       */
      MessageS2CCreateCharacterNACK msgCreateCharacterNACK = new MessageS2CCreateCharacterNACK(
          channel, result);
      msgCreateCharacterNACK.setClientID(clientid);
      msgCreateCharacterNACK.setProtocolVersion(protocolVersion);
      netMan.sendMessage(msgCreateCharacterNACK);
    }
  }
View Full Code Here

TOP

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

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.