Package net.bnubot.vercheck

Examples of net.bnubot.vercheck.ReleaseType


      if(whisperBack || isMyUser) {
        if(whisperBack)
          prefix.append(getWhisperCommand());

        prefix.append("[BNU");
        ReleaseType rt = CurrentVersion.version().getReleaseType();
        if(rt.isNightly())
          prefix.append(" Nightly");
        else if(rt.isAlpha())
          prefix.append(" Alpha");
        else if(rt.isBeta())
          prefix.append(" Beta");
        else if(rt.isReleaseCandidate())
          prefix.append(" RC");
        prefix.append("] ");
      } else {
        prefix.append(this.toString(GlobalSettings.bnUserToStringCommandResponse));
        prefix.append(": ");
View Full Code Here


    // Create connections for the default bots
    for(int i = 1; i <= GlobalSettings.numBots; i++)
      Profile.newConnection(i);

    if(CurrentVersion.fromJar()) {
      ReleaseType rt = CurrentVersion.version().getReleaseType();
      if(!rt.isStable())
        Out.error(CurrentVersion.class, "WARNING: This is a " + rt.name() + " build. It may contain bugs, or be unstable. Use at your own risk!");
    }

    // Write out any modified settings
    Settings.store();
View Full Code Here

    bnUserToString = ss.read("bnUserToString", 1); // BNLogin
    bnUserToStringUserList = ss.read("bnUserToStringUserList", 5); // Account (BNLogin)
    bnUserToStringCommandResponse = ss.read("bnUserToStringCommandResponse", 4); // Account

    // Get the release type to check for when doing version checks
    ReleaseType currentRelease = CurrentVersion.version().getReleaseType();
    releaseType = ss.read("releaseType", currentRelease);

    if(CurrentVersion.fromJar()) {
      // If from a JAR, force Nightly
      if(releaseType.isDevelopment())
View Full Code Here

TOP

Related Classes of net.bnubot.vercheck.ReleaseType

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.