throw new CommandException("You cannot resend chunks in client mode.");
}
if (action.contains("resendall")) {
Set<Chunk> chunks = player.getNetwork().getActiveChunks();
for (Chunk c : chunks) {
player.getNetwork().callProtocolEvent(new ChunkSendEvent(c, true));
}
source.sendMessage("All chunks resent");
} else if (action.contains("resend")) {
player.getNetwork().callProtocolEvent(new ChunkSendEvent(player.getChunk(), true));
source.sendMessage("Chunk resent");
}
}
}