1) When a player logs in, how many chunks around him are loaded? Or does this depend on the visibility? 2) If I use the loadChunk(x,z) method to load a chunk far away, will the chunk stay loaded until I unload it manually, or will it immediately unload since no players are close?
1) This is configurable in the server.properties file I believe. 2) AFAIK, it will automatically unload since no players are close. You can use the chunkunloadevent and cancel that to prevent that from happening
1: A radius of 10 chunks around the player, or 11 if you count the one the player is in. I think this can be changed in server.properties though. 2: No, it will never unload until something causes it to (for example, a player going there and then leaving.)
adam753 Ivan Alright, well I got the answer to my 1st question. However, you guys seem to disagree on the second one. Could someone clarify?
I'm pretty sure loadChunk is the same as someone walking within range of the chunk, which means it has to be unloaded by someone leaving the area (or manually). I looked at this thread which talks about the loading and unloading of chunks.