public static <E extends Throwable> void use(Path tempDir, Map<String, String> config, Consumer<E> consumer) throws E {
        try (Plugin plugin = create(tempDir, config)) {
            consumer.accept(plugin.app, plugin.bootstrap, plugin.plugin);
        }
    }
Creates a test LuckPerms plugin instance, loads/enables it, runs the consumer, then disables it.

@param tempDir the temporary directory to run the plugin in
@param config the config to set
@param consumer the consumer
@param <E> the exception class thrown by the consumer
@throws E exception
standalone/src/test/java/me/lucko/luckperms/standalone/utils/TestPluginProvider.java