package com.btk5h.skriptmirror;

import org.bukkit.plugin.java.JavaPlugin;

import java.io.IOException;

import ch.njol.skript.Skript;
import ch.njol.skript.SkriptAddon;

public class SkriptMirror extends JavaPlugin {
  private static SkriptMirror instance;
  private static SkriptAddon addonInstance;

  public SkriptMirror() {
    if (instance == null) {
      instance = this;
    } else {
      throw new IllegalStateException();
    }
  }

  @Override
  public void onEnable() {
    try {
      getAddonInstance().loadClasses("com.btk5h.skriptmirror", "skript");
      LibraryLoader.loadLibraries();
    } catch (IOException e) {
      e.printStackTrace();
    }
  }

  public static SkriptAddon getAddonInstance() {
    if (addonInstance == null) {
      addonInstance = Skript.registerAddon(getInstance());
    }
    return addonInstance;
  }

  public static SkriptMirror getInstance() {
    if (instance == null) {
      throw new IllegalStateException();
    }
    return instance;
  }
}

@@ -37,72 +37,30 @@
 ort 
-org.bukkit.plugin.java.JavaPlugin;%0A%0Aimport java.io.IOException;%0A
+ch.njol.skript.Skript;
 %0Aimp
@@ -76,32 +76,37 @@
 ol.skript.Skript
+Addon
 ;%0Aimport ch.njol
@@ -102,32 +102,68 @@
 ort 
-ch.njol.skript.SkriptAdd
+org.bukkit.plugin.java.JavaPlugin;%0A%0Aimport java.io.IOExcepti
 on;%0A
@@ -550,12 +550,9 @@
 rror
-%22, %22
+.
 skri

Remove unnecessary subpackage