package net.moltendorf.Bukkit.IntelliDoors

import net.moltendorf.Bukkit.IntelliDoors.listener.Interact
import net.moltendorf.Bukkit.IntelliDoors.listener.Redstone
import org.bukkit.plugin.java.JavaPlugin

/**
 * Created by moltendorf on 15/05/23.

 * @author moltendorf
 */
class IntelliDoors : JavaPlugin() {
  // Variable data.
  lateinit var settings: Settings
    private set
  lateinit var timer: Timer
    private set

  override fun onEnable() {
    instance = this

    // Construct new settings.
    settings = Settings()

    // Construct new timer.
    timer = Timer()

    // Are we enabled?
    enabled = settings.enabled

    if (enabled) {
      // Register listeners.
      val manager = server.pluginManager

      if (settings.interact) {
        manager.registerEvents(Interact(), this)
      }

      if (settings.redstone) {
        manager.registerEvents(Redstone(), this)
      }
    }
  }

  override fun onDisable() {
    timer.shutAllDoors()

    enabled = false
  }

  companion object {
    var enabled = false
      private set

    lateinit var instance: IntelliDoors
      private set
  }
}

package net.moltendorf.Bukkit.IntelliDoors

import net.moltendorf.Bukkit.IntelliDoors.listener.Interact
import net.moltendorf.Bukkit.IntelliDoors.listener.Redstone
import org.bukkit.plugin.java.JavaPlugin
import kotlin.concurrent.timer

/**
 * Created by moltendorf on 15/05/23.

 * @author moltendorf
 */
class IntelliDoors : JavaPlugin() {
  // Variable data.
  lateinit var settings: Settings
    private set
  lateinit var timer: Timer
    private set

  override fun onEnable() {
    instance = this

    // Construct new settings.
    settings = Settings()

    // Construct new timer.
    timer = Timer()

    // Are we enabled?
    enabled = settings.enabled

    if (enabled) {
      // Register listeners.
      val manager = server.pluginManager

      if (settings.interact) {
        manager.registerEvents(Interact(), this)
        logger.info("Enabled interact listeners.")
      }

      if (settings.redstone) {
        manager.registerEvents(Redstone(), this)
        logger.info("Enabled redstone listeners.")
      }
    }
  }

  override fun onDisable() {
    timer.shutAllDoors()

    enabled = false
  }

  companion object {
    var enabled = false
      private set

    lateinit var instance: IntelliDoors
      private set
  }
}

Add some more logs for when the plugin enables
Add some more logs for when the plugin enables

moltendorf/IntelliDoors