1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Unload chunks for players

Discussion in 'Development' started by uzyan, Apr 6, 2019.

  1. uzyan

    uzyan Creeper

    Messages:
    2
    I need to unload chunks for all players on a specific server (without fixing it in the kernel).
    I know about the existence of the package FullChunkDataPacket, and that he personally is not sent to the player, sent BatchPacket .
    I already tried to get all the packages and check, Is any of the nick FullChunkDataPacket, but I realized that such a package does not come at all. The question is how can unload chunks?
     
  2. KielKing

    KielKing Zombie

    Messages:
    245
    GitHub:
    kielking
    PHP:
    /** @var Level $level */
    /** @var int $x */
    /** @var int $z */
    $level->unloadChunk($x$z);
     
  3. uzyan

    uzyan Creeper

    Messages:
    2

    the problem is that if a chunk is sent to the player, then it cannot be unloaded
     
  4. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    What is the reason to do that? Im pretty sure pmmp already handled it nicely
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.