Package ch.njol.skript.util

Examples of ch.njol.skript.util.Version.compareTo()


                final Object url = ((JSONObject) o).get("downloadUrl");
                if (!(url instanceof String))
                  continue;
               
                final Version version = new Version(((String) name).contains(" ") ? "" + ((String) name).substring(0, ((String) name).indexOf(' ')) : ((String) name));
                if (version.compareTo(Skript.getVersion()) > 0) {
                  infos.add(new VersionInfo((String) name, version, (String) url));
                }
              }
            }
          } finally {
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.