public static Plugin create(Path tempDir, Map<String, String> config) {
        Map<String, String> props = new HashMap<>(config);
        props.putIfAbsent("auto-install-translations", "false");
        props.putIfAbsent("editor-lazily-generate-key", "true");

        props.forEach((k, v) -> System.setProperty("luckperms." + k, v));

        LuckPermsApplication app = new LuckPermsApplication(() -> {});
        TestPluginBootstrap bootstrap = new TestPluginBootstrap(app, tempDir);

        bootstrap.onLoad();
        bootstrap.onEnable();

        props.keySet().forEach((k) -> System.clearProperty("luckperms." + k));

        return new Plugin(app, bootstrap, bootstrap.getPlugin());
    }
Creates a test LuckPerms plugin instance, loads/enables it, and returns it.

@param tempDir the temporary directory to run the plugin in
@param config the config to set
@return the plugin
standalone/src/test/java/me/lucko/luckperms/standalone/utils/TestPluginProvider.java