Package de.beimax.simplespleef.util

Examples of de.beimax.simplespleef.util.UpdateChecker.checkForUpdate()


   
    // possibly check for updates in the internet on startup
    this.getServer().getScheduler().scheduleAsyncDelayedTask(this, new Runnable() {
        public void run() {
          try {
          String newVersion = checker.checkForUpdate(SimpleSpleef.simpleSpleef.getDescription().getVersion());
          if (newVersion != null)
            log.info("[SimpleSpleef] Update found for SimpleSpleef - please go to http://dev.bukkit.org/server-mods/simple-spleef/ to download version " + newVersion + "!");
        } catch (Exception e) {
          log.warning("[SimpleSpleef] Could not connect to remote server to check for update. Exception said: " + e.getMessage());
        }
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.