Solved Could i be receiving a null pointer for this?

Discussion in 'Plugin Development' started by Tyler Christensen, Sep 1, 2014.

Thread Status:
Not open for further replies.
  1. If in my onEnable, i get a block, could i recive a null pointer because the chunk hasn't loaded?
     
  2. Offline

    bennie3211

    Hmhmm, I think you need to get the block in the ChunkLoadEvent. I'm not sure if you get a NPE if you get a block in onEnable.
     
  3. Offline

    hintss

    or you could load that chunk yourself
     
  4. Ive tried loading the chunk myself, but i realized that the enitre server has to get done enableing before i can do anything with blocks or chunks or worlds. Thanks for the help guys :D
     
Thread Status:
Not open for further replies.

Share This Page