Package de.beimax.simplespleef.util

Examples of de.beimax.simplespleef.util.UpdateChecker


  /**
   * Check for updates
   */
  protected void checkForUpdate() {
    // create update checker
    final UpdateChecker checker = new UpdateChecker();
   
    // 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());
        }
        }
    }, 0L);
   
    // also check for updates in the configuration files and update them, if needed
    checker.updateConfigurationVersion(this);
  }
View Full Code Here


   
    // add listener for other plugins
    pm.registerEvents(new PluginListener(), this);
    // Register our events
    pm.registerEvents(gameHandler, this);
    pm.registerEvents(new UpdateChecker(), this); // check updates
    pm.registerEvents(new SimpleSpleefSignCommandExecutor(), this); // check sign actions
    pm.registerEvents(new SimpleSpleefCommandWhitelist(), this); // check command whitelist
  }
View Full Code Here

TOP

Related Classes of de.beimax.simplespleef.util.UpdateChecker

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.