/* (non-Javadoc)
   * @see org.bukkit.plugin.Plugin#onEnable()
   */
  @Override
  public void onEnable() {
    log = getServer().getLogger();
    Rift.setPlugin(this);

    // Register our events
    // PluginManager pm = getServer().getPluginManager();

    getCommand("rift").setExecutor(this);
    getCommand("chunk").setExecutor(this);

    //		getServer().getScheduler().scheduleSyncRepeatingTask(this, new RiftOpener(this), MIN_TIME *
    // 1200,
    //			(long) Math.random() * MAX_TIME + MIN_TIME);

    // EXAMPLE: Custom code, here we just output some info so we can check all is well
    PluginDescriptionFile pdfFile = getDescription();
    log.info(pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!");
  }
 /* (non-Javadoc)
  * @see org.bukkit.plugin.Plugin#onDisable()
  */
 @Override
 public void onDisable() {
   for (Rift iter : activeRifts) {
     iter.getClosingSequence().closeFast();
   }
 }