Example #1
0
  private Timer(boolean dummy, Plugin plugin, TimerConfig config, int seconds) {
    this.plugin = plugin;
    this.majorDelay = config.getMajorDuration();
    this.minorDelay = config.getMinorDuration();
    this.format = config.getFormat();
    this.endMessage = config.getEndMessage();

    this.taskId = -1;
    this.remainingTime = seconds;

    this.currentDelay = 0;
  }