Despite my best attempts, every time I try to get a simple yml file from inside the jar using getAsset, I’m always met with “NoSuchElementException”. For reference this also happens when attempting to get a txt file.
My plugin variable is definitely not null, I’ve got the assets folder listed as being in the build path in Eclipse, yet still I get the same issue.
My only idea is that it’s not actually including the assets folder when it builds despite being added to the build path.
It’s important to understand structure. src/main/java/ is where Java files go, src/main/scala/ would be where Scala files go, src/main/<languagename>/ is where <language> source code goes. With an exception for src/main/resources/, which is where non-code files go, such as configs. And then swap mainfortestfor anything related for testing.src/` should be only folder you ever have to modify to create the program itself.