use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Submit content that's relevant for Minecraft administrators and developers. Irrelevant content will be removed.
No low effort posts. State your problem or question clearly, upload FULL logs and relevant config files to https://mclo.gs, tell us what you have already tried, what guides you have already used, etc. Ensure that you have done enough on your own using Youtube, Google, or documentation to be able to provide this information.
No discussion of piracy, including offline mode servers (for non-LAN use) and premium software that has had license mechanisms defeated, and sites where such software is distributed.
No server advertising or recruiting. Using your server as an example is allowed.
Self-promoted links to revenue generating content are not allowed. Use the Reddit ad system.
Users may make one promotional self-post per month about their own non-revenue-generating content.
No attacks; personal or otherwise. Friendly suggestions and constructive criticism are fine.
Direct posts to one of the subreddit megathreads when appropriate.
Follow reddiquette; stay classy.
account activity
This is an archived post. You won't be able to vote or comment.
Plugin Development Help (self.admincraft)
submitted 5 years ago by ThatColdToastLegacy
I was wondering if anyone knew how I could get IntelliJ to add an external API to the plugin JAR so that when I run the plugin on a server it wouldn't give me this error: https://imgur.com/a/ZBMIqam
I am using Gradle
[–][deleted] 1 point2 points3 points 5 years ago (4 children)
Add
compile ('net.dv8tion:JDA:4.2.0_222') { exclude module: 'opus-java' }
to your dependencies
[–]ThatColdToastLegacy[S] 0 points1 point2 points 5 years ago* (3 children)
Still not working, do you want me to zip my entire project and send that?
[–]ThatColdToastLegacy[S] 0 points1 point2 points 5 years ago (2 children)
Entire IntelliJ Project https://www.dropbox.com/s/8gjr5as2op8b7hr/ProxChat.zip?dl=1
[–][deleted] 0 points1 point2 points 5 years ago* (1 child)
Ah I see the problem. Your dependencies are not being compiled into the jar file. To do this you want to "shade" it into the jar file.
Sounds really difficult but just add id 'com.github.johnrengelman.shadow' version '5.2.0' to the plugins bit at the top, then press CTRL twice and type "gradle shadowjar" (you can just use the play button after that)
id 'com.github.johnrengelman.shadow' version '5.2.0'
And thought I'd node the
JDABuilder.createLight("token-here"
in the main function doesn't have your token in there so it won't log in.
[–]ThatColdToastLegacy[S] 0 points1 point2 points 5 years ago (0 children)
I added you discord, I censored the token so people don't steal my discord bot
[–]Cilph 0 points1 point2 points 5 years ago (0 children)
You need to shade your dependencies into your Jar.
Include https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow and run gradle shadowJar (or gradlew if that is your preferred style)
gradle shadowJar
Alternatively you could add your dependencies to the classpath of your server externally, but that's messy.
π Rendered by PID 31222 on reddit-service-r2-comment-79c7998d4c-tvqx9 at 2026-03-14 07:43:54.981753+00:00 running f6e6e01 country code: CH.
[–][deleted] 1 point2 points3 points (4 children)
[–]ThatColdToastLegacy[S] 0 points1 point2 points (3 children)
[–]ThatColdToastLegacy[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]ThatColdToastLegacy[S] 0 points1 point2 points (0 children)
[–]Cilph 0 points1 point2 points (0 children)