#IslandManagerFile null
1 messages · Page 1 of 1 (latest)
No worries just there's 2 convos going on in general and it's cluttered lol
Where are you calling setup
onEnable
Could you send that?
Is the NPE being thrown in the IslandManager() constructor?
public IslandManagerFile islandFile;
no
is being thrown in other class
I show you
Send the full error if you could
Ah yeah it's because that's being called in IslandManager constructor
Ur setting up the file
And you haven't setup yet.
After u try to use it
^
wait really
You just have the order wrong.
Either put it between the two constructors or put setup in the constructor of islandFile
2nd option is cleaner imo
btw, I haven't used this and I don't know how it works... Do you know if I have to load somehow or something?
because it isn't generating in the pl folder
Yeah you have to save them manually, I believe it's saveResource
hmm, I'll see thanks!
well, I have tried, but don't really know how to use it
this.saveResource("path/to/resource");
Do that in your onEnable
i was doing this.getDataFolder()