Large amounts of sendBlockChange kick player?

Discussion in 'Plugin Development' started by Tirelessly, Jul 14, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Tirelessly

    I was just trying out a proof of concept for something that was suggested on the plugin request forums. However, every time I use it I get kicked and I'm not sure why.

    Brief description: Upon command, the chunk a player is in and the adjacent chunks are sent as glass in a xray-like manner.

    Here is my code: http://pastebin.com/K08z0Tg6
    It's relatively easy to follow.

    I noticed that on line 55, If I made that loop happen less times, sometimes I wouldn't be kicked. However, even when I was not kicked, I did not experience any block changes.
     
  2. Offline

    xTrollxDudex

  3. Offline

    Tirelessly

    xTrollxDudex As far as I can tell, that's actually setting the block type, not sending false changes.
     
  4. Offline

    xTrollxDudex

    Tirelessly
    I never said you needed to copy that.
     
  5. Offline

    molenzwiebel

    This is when you send too much data in a short period of time to the client. What I ended up doing was splitting the blocks into multiple chunks and send them with some delay in between.
     
    Eats_Rainbows and xTrollxDudex like this.
  6. Offline

    Comphenix

    Tirelessly likes this.
  7. Offline

    Tirelessly

    Comphenix likes this.
  8. Offline

    xTrollxDudex

    Comphenix likes this.
Thread Status:
Not open for further replies.

Share This Page