mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-28 19:14:15 +00:00
attempt to add discordsrv
This commit is contained in:
parent
aab5083f78
commit
912dff0ec9
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue