// verify that chunks unloaded
int lastloaded = 0;
while (providerServer.getLoadedChunkCount() != lastloaded) {
lastloaded = providerServer.getLoadedChunkCount();
providerServer.unloadQueuedChunks();
for (final Pair<Integer, Integer> coord : chunks.keySet()) {
final Chunk chunk = chunks.get(coord);
if (chunk != null) {
if (chunk.isChunkLoaded) {