Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Help] FastTransfer for PM 1.6 fix

Comments in 'Plugin Development' started by Guillaume351, Sep 9, 2015.

  1. Guillaume351
    Offline

    Guillaume351 Active Member Plugin Developer

    Joined:
    Oct 11, 2013
    Posts:
    150
    Plugins:
    1
    Minecraft User:
    Guillaume351
    Hello,
    when I use FastTransfer with PocketMine 1.6 players still receive packets from the 1st server. They are showed as connected on both servers.
    How to close connection from 1st server without disconnecting player from 2nd server?
    Thanks
    iJoshuaHD likes this.
  2. Guillaume351
    Offline

    Guillaume351 Active Member Plugin Developer

    Joined:
    Oct 11, 2013
    Posts:
    150
    Plugins:
    1
    Minecraft User:
    Guillaume351
    Fixed ! Add this in transferPlayer (in FastTransfer.php) just before return true;

    Edit : Do not fix all issues, only a few one :/
    PHP:
      $this->getServer()->removeOnlinePlayer($player);
            
    $this->getServer()->removePlayer($player);
            
    $this->getServer()->removePlayerListData($player->getUniqueId());
    Last edited: Sep 9, 2015
    iJoshuaHD likes this.
  3. matthww
    Offline

    matthww Active Member

    Joined:
    May 13, 2014
    Posts:
    91
    Minecraft User:
    Matthww
    Could you post the fixed .phar here?
  4. Guillaume351
    Offline

    Guillaume351 Active Member Plugin Developer

    Joined:
    Oct 11, 2013
    Posts:
    150
    Plugins:
    1
    Minecraft User:
    Guillaume351
    It still a bit buggy - Server 1 can still send packet to player (but he is despawned and his chunk unloaded), I try to fix this and I upload here
  5. matthww
    Offline

    matthww Active Member

    Joined:
    May 13, 2014
    Posts:
    91
    Minecraft User:
    Matthww
    Ok :)
  6. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    it doesnt fix this. server still crashing with updatePlayerListData crap
  7. Guillaume351
    Offline

    Guillaume351 Active Member Plugin Developer

    Joined:
    Oct 11, 2013
    Posts:
    150
    Plugins:
    1
    Minecraft User:
    Guillaume351
    I don't have crash, at least if fixes CPU usage and remove player from player number.
    However, player is still connected to 1st server.
    Anyone help ? :/ I'm trying a lot of things right now..

    Edit : this is a client issue. As transfers are not officially supported by MCPE, I'm not sure how soon we will see a fix
    Last edited: Sep 11, 2015

Share This Page

Advertisement