#IslandManagerFile null

1 messages · Page 1 of 1 (latest)

cinder sequoia
#

Make a thread to clear up chat

#

@covert jungle

covert jungle
#

oh

#

sorry

#

sure

cinder sequoia
#

No worries just there's 2 convos going on in general and it's cluttered lol

#

Where are you calling setup

covert jungle
#

onEnable

cinder sequoia
#

Could you send that?

covert jungle
#

"islandFile" is this :

cinder sequoia
#

Is the NPE being thrown in the IslandManager() constructor?

covert jungle
#

public IslandManagerFile islandFile;

#

no

#

is being thrown in other class

#

I show you

cinder sequoia
#

Send the full error if you could

covert jungle
#

oh

#

sure

#

?md

#

uh

#

?paste

#

here

#

here is the problem

cinder sequoia
#

Ah yeah it's because that's being called in IslandManager constructor

finite moon
#

Ur setting up the file

cinder sequoia
#

And you haven't setup yet.

finite moon
#

After u try to use it

cinder sequoia
#

^

covert jungle
#

wait really

cinder sequoia
#

You just have the order wrong.

finite moon
#

Why don't u call setup in the constructor

#

Of islandfile

covert jungle
#

oh wait

#

so just like this is supposed to be solved?

cinder sequoia
#

Either put it between the two constructors or put setup in the constructor of islandFile

#

2nd option is cleaner imo

covert jungle
#

yea

#

thanks!

#

oh wait

#

"islandFile" won't work there xD

covert jungle
#

because it isn't generating in the pl folder

cinder sequoia
#

Yeah you have to save them manually, I believe it's saveResource

covert jungle
#

hmm, I'll see thanks!

covert jungle
cinder sequoia
covert jungle
#

yea but

#

doesn't work

cinder sequoia
#

Don't type plugin/SkyblockPlugin

#

Just do schematics/island.schematic

covert jungle
#

i was doing this.getDataFolder()