for (int x = entityPlayerMP.chunkCoordX - side, eX = x + side + side; x < eX; x++) {
for (int z = entityPlayerMP.chunkCoordZ - side, eZ = z + side + side; z < eZ; z++) {
PlayerInstance playerInstance = worldServer.getPlayerManager().getOrCreateChunkWatcher(x, z, false);
if (playerInstance != null) {
count++;
playerInstance.forceUpdate();
}
}
}
sendChat(commandSender, "Refreshed " + count + " chunks");
return;