Package org.spout.api.protocol.event

Examples of org.spout.api.protocol.event.ChunkSendEvent


        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");
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.spout.api.protocol.event.ChunkSendEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.