Package com.comphenix.protocol.utility

Examples of com.comphenix.protocol.utility.MinecraftVersion.compareTo()


      MinecraftVersion current = new MinecraftVersion(getServer());

      // Skip certain versions
      if (!config.getIgnoreVersionCheck().equals(current.getVersion())) {
        // We'll just warn the user for now
        if (current.compareTo(minimum) < 0)
          logger.warning("Version " + current + " is lower than the minimum " + minimum);
        if (current.compareTo(maximum) > 0)
          logger.warning("Version " + current + " has not yet been tested! Proceed with caution.");
       }
      return current;
View Full Code Here


      // Skip certain versions
      if (!config.getIgnoreVersionCheck().equals(current.getVersion())) {
        // We'll just warn the user for now
        if (current.compareTo(minimum) < 0)
          logger.warning("Version " + current + " is lower than the minimum " + minimum);
        if (current.compareTo(maximum) > 0)
          logger.warning("Version " + current + " has not yet been tested! Proceed with caution.");
       }
      return current;

    } catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.