Block-Build/MusikBot

Error when using Vixio on same server

Timmehhhh opened this issue · 9 comments

I had MusikBot and Vixio both working on the same server but when trying to use the server with both installed they both won't work properly. I've pasted what happens on startup in the console.

[14:11:04 WARN]: [MusikBot] Loaded class com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager from Vixio v2.0.8-patched which is not a depend, softdepend or loadbefore of this plugin.
[14:11:04 INFO]: [MusikBot] Get started...
[14:11:04 WARN]: [MusikBot] Task #181 for MusikBot v1.2.5 generated an exception
java.lang.NoSuchMethodError: 'boolean net.dv8tion.jda.api.entities.Member.isPending()'
        at net.dv8tion.jda.api.utils.MemberCachePolicy.<clinit>(MemberCachePolicy.java:101) ~[?:?]
container@pterodactyl~ Server marked as running...
        at net.dv8tion.jda.api.JDABuilder.<init>(JDABuilder.java:96) ~[?:?]
        at net.dv8tion.jda.api.JDABuilder.create(JDABuilder.java:535) ~[?:?]
        at de.blockbuild.musikbot.Bot.start(Bot.java:123) ~[?:?]
        at de.blockbuild.musikbot.Bot.<init>(Bot.java:101) ~[?:?]
        at de.blockbuild.musikbot.Main.lambda$start$6(Main.java:73) ~[?:?]
        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.16.5.jar:git-Paper-626]
        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.5.jar:git-Paper-626]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074) ~[patched_1.16.5.jar:git-Paper-626]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:289) ~[patched_1.16.5.jar:git-Paper-626]
        at java.lang.Thread.run(Thread.java:834) [?:?]
[14:11:04 INFO]: Done (54.589s)! For help, type "help"
[14:11:04 WARN]: Can't keep up! Is the server overloaded? Running 7966ms or 159 ticks behind
[14:11:04 INFO]: Timings Reset
[14:11:06 WARN]: [Vixio] Loaded class net.dv8tion.jda.api.JDABuilder from MusikBot v1.2.5 which is not a depend, softdepend or loadbefore of this plugin.
[14:11:06 WARN]: [Skript] Plugin Skript v2.5.3 generated an exception while executing task 200
java.lang.NoClassDefFoundError: Could not initialize class net.dv8tion.jda.api.utils.MemberCachePolicy
        at net.dv8tion.jda.api.JDABuilder.<init>(JDABuilder.java:96) ~[?:?]
        at net.dv8tion.jda.api.JDABuilder.createDefault(JDABuilder.java:201) ~[?:?]
        at me.iblitzkriegi.vixio.effects.EffLogin.execute(EffLogin.java:59) ~[?:?]
        at me.iblitzkriegi.vixio.util.skript.AsyncEffect.access$000(AsyncEffect.java:18) ~[?:?]
        at me.iblitzkriegi.vixio.util.skript.AsyncEffect$1.run(AsyncEffect.java:36) ~[?:?]
        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.16.5.jar:git-Paper-626]
        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.16.5.jar:git-Paper-626]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.5.jar:git-Paper-626]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
        at java.lang.Thread.run(Thread.java:834) [?:?]

had the plugins already worked at the same time?

No, the only problem seems to be that they are both using the same library. I can't find a workaround without breaking Vixio or MusikBot. I'm a first time Github user so I don't know if I've put this at the right place as it isn't really an issue in MusikBot itself. It's more that both can't function at the same time because of the library conflict.

The dependencie version of the other plugin are currently a little bit more up to date then the one i use. I'll update the dependencies to the latest version (newer than the other plugin atm) maybe this work for you.

But not now, I'm very busy at the moment. Maybe next week.

Hey, you can try this wip version.
MusikBot-1.2.6-Shaded.jar.zip

Ohh this is looking much better, tahnk you! I'm still getting a conflict with net.dv8tion.jda.api.JDABuilder. Do you have a place where I can send you some money for a coffee or anything?

But it's working now?
Just have a look to this site, there is a donation URL.

No, Vixio will stop loading after net.dv8tion.jda.api.JDABuilder. Both bots appear offline on Discord.

Won't wait
Previous music?
ex:
I will play the first song
Music KOMOREBI
But I will use COMMAND next

!Play https://youtu.be/-cBjAYY9mUY

He wants to play the song I typed
https://youtu.be/-cBjAYY9mUY

@LuciaTor sorry but i don't understand you question.
!Play to play the requestet song now
!queue to add the sont to the queue
!skip to skip one or the given amount of pensing songs