Multiverse Core not found
Can someone take a look at this and tell me why it might not be confirming the multiverse plugin as an instance of multiverse. I can't figure it out
I have the 4.3.1 API and MultiverseCore-4.3.1 installed and running on my server yet it still tells me it's not found. Not sure what it is
80 Replies
Thanks for asking your question!
Once you have finished, please close your thread.
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
command to close
/close
!close
!solved
Requested by .earth69#0
GitHub
Developer API Starter
The original Bukkit Multi-World Plugin! . Contribute to Multiverse/Multiverse-Core development by creating an account on GitHub.
did u follow this?
Yup
make sure multiverse is being loaded before your plugin
you are depending on the plugin right?
yeah it's under my depend list in plugin.yml
have you made sure its actually loaded?
multiverse i mean
yea it loads on the server
I use a bunch of the multiverse add-ons too
none of them fail
send the logs i wanna see the errosrs
ignore
[15:21:43] [Server thread/WARN]: [MultiverseHardcore] Multiverse-Core
I was just trying to see if it was null or notPlease use a paste service instead!
Paste services are more mobile friendly and easier to read than just posting a log file
latest.log
Requested by .earth69#0
mb
well it doesnt throw the not found exception
so it must be instanceof
yeah
but I have the latest API
well i dont see what the issue is?
its running as normal
yeah fr
dumb error to get stuck on
no like what error
i dont see an error
yes so show the logs with that error
pls
the full logs
I did
the log u sent doesnt have it
yea it does I just copied it from that
upload to mclogs
pls
the bot only pulled the first 100lines
hard to see the txt file on mobile
mb
Just for reference I'm trying to upgrade this plugin: https://github.com/lluiscamino/MultiverseHardcore
GitHub
GitHub - lluiscamino/MultiverseHardcore: Spigot plugin that extends...
Spigot plugin that extends the Multiverse plugin by adding a Hardcore gamemode - GitHub - lluiscamino/MultiverseHardcore: Spigot plugin that extends the Multiverse plugin by adding a Hardcore gamemode
I forked it
The jar on the spigot page loads multiverse fine
but there's errors when using the plugin so I thought I would just update it but I can't get multiverse as an instance of the class
well thats just weird
bro it's so annoying
thanks for you guys trying to help though
I appreciate it
doesnt multiverse have a discord?
ask there
if they do
whats ur plugin.yml look like?
id assume exactly like the github
yes
except I added Multiverse-Core as a depend
so
this is how they're doing it now
not using instanceof
I can try it but doesn't casting require it to be of that type?
thats why ur checking it with the if
im looking at other addons and this is how they're doing it
well if that returns null then itll try and cast null
who are you referring to btw
multiverse inventories
GitHub
Multiverse-Inventories/src/main/java/com/onarandombox/multiverseinv...
Contribute to Multiverse/Multiverse-Inventories development by creating an account on GitHub.
they also cast in their documetnation
GitHub
Developer API Starter
The original Bukkit Multi-World Plugin! . Contribute to Multiverse/Multiverse-Core development by creating an account on GitHub.
Failed to cast
one sec I'll post the log
this error seems more helpful though
so it's trying to cast Multiverse-Core as MultiverseHardcore but why
oh
no dont do that
can i see ur code?
I'm not trying bro
whats your import looking like for MultiverseCore
I'll send the pom
bruh
its fine
hmm idk tbh
same I'm stump
maybe try importing the multiverse plugin directly instead of using pom
adding it as a resource
I can try that but idk how that'll change anything
yeah i dont think it will either.. LMAO im stumped too
java.lang.ClassCastException: class com.onarandombox.MultiverseCore.MultiverseCore cannot be cast to class com.onarandombox.MultiverseCore.MultiverseCore (com.onarandombox.MultiverseCore.MultiverseCore is in unnamed module of loader 'Multiverse-Core-4.3.1.jar' @6c663e50; com.onarandombox.MultiverseCore.MultiverseCore is in unnamed module of loader 'MultiverseHardcore-2.0.0.jar' @5a6b6814)this error confuses me Conflicting classes?
thats like its trying to create a new instance or smth
join the mv discord
i found
this exact issue
in the mv discord
ohhhh
they didnt shade mv core
mines already set as provided ðŸ˜
open the jar with recaf or jdgui or smth and check if it hasnt included it
nah tf I thought the provided was going to be it I tried reloading maven and shit and fresh building but it still fails
also if there was a class conflict wouldn't I be able to see a duplicate in the jar?
uhh that means you have implemented it
it shouldnt be there
post your pom.xml
it was originally implemented and then I changed it to provided
is there something I have to do additionally?
pom.xml
I FOUND IT
lemme make sure it works first
thank you I wouldn't have known
you found what?
ha
the multiverse core jar file was listed where I circled
after I removed it
It wasn't in the jar anymore like you said
and it worked
that would do it
alr but I didn't put it there
its why you never touch the project structure
it must've happened when maven was set to implement and then when I changed it to provided it never removed the jar
I never fuck with that dw
thanks for all your help guys
!solved