All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.id2r.api.velocity.VelocityDependencyManager Maven / Gradle / Ivy

package dev.id2r.api.velocity;

import dev.id2r.api.common.dependency.DependencyManager;

import java.nio.file.Path;

public class VelocityDependencyManager extends DependencyManager {

    private final VelocityBootstrap bootstrap;

    public VelocityDependencyManager(VelocityBootstrap bootstrap) {
        super(bootstrap.getLogger(), bootstrap.getDataDirectory());
        this.bootstrap = bootstrap;
    }

    @Override
    protected void addToClasspath(Path file) {
        bootstrap.getServer().getPluginManager().addToClasspath(this.bootstrap, file);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy