attempt to add discordsrv

This commit is contained in:
Telesphoreo 2024-01-25 17:44:47 -06:00
parent aab5083f78
commit 912dff0ec9
2 changed files with 9 additions and 0 deletions

View file

@ -57,6 +57,10 @@ paper {
required = false
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
}
register("DiscordSRV") {
required = false
load = PaperPluginDescription.RelativeLoadOrder.AFTER
}
register("Essentials") {
required = false
load = PaperPluginDescription.RelativeLoadOrder.BEFORE

View file

@ -33,6 +33,11 @@ public class PlexLibraryManager implements PluginLoader
resolver.addDependency(new Dependency(new DefaultArtifact("org.eclipse.jetty:jetty-servlet:11.0.19"), null));
resolver.addDependency(new Dependency(new DefaultArtifact("org.eclipse.jetty:jetty-proxy:11.0.19"), null));
}
if (new File("plugins/Plex/modules/Module-DiscordSRV.jar").isFile())
{
resolver.addRepository(new RemoteRepository.Builder("discordsrv", "default", "https://nexus.scarsz.me/content/groups/public/").build());
resolver.addDependency(new Dependency(new DefaultArtifact("com.discordsrv:discordsrv:1.27.0"), null));
}
classpathBuilder.addLibrary(resolver);
}