· @snowyfox
137 followers · 29103 posts · Server deadinsi.de

I think I'm going to leave as file-based. The reason why I iterated the files in the folder rather than have a hardcoded list is because I wanted users to be able to add their own banners, remove some, or remove all of them. The only reasonable way for that is a file folder.

Something similar can be argued for the rest of the assets. I can add a check for those: if says there's no such thing in the JAR, then I will look in the current directory anyways.

Java doesn't really have a reasonable way to find the directory of the currently running class or JAR. They wanted that to be hidden. So currently set working directory will have to do, for my file-based code

#getresource #locals

Last updated 1 year ago