package us.myles.ViaVersion.api;

import lombok.Getter;
import us.myles.ViaVersion.ViaVersionPlugin;

public class ViaVersion {

    @Getter
    private static ViaVersionAPI instance;
    @Getter
    private static ViaVersionConfig config;

    public static void setInstance(ViaVersionPlugin plugin) {
        ViaVersion.instance = plugin;
        ViaVersion.config = plugin;
    }
}

@@ -52,16 +52,58 @@
 etter;%0D%0A
+import org.apache.commons.lang.Validate;%0D%0A
 import u
@@ -351,16 +351,87 @@
 gin) %7B%0D%0A
+        Validate.isTrue(instance == null, %22Instance is already set%22);%0D%0A
         

Stop allowing everyone to change the instance