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

Fix the teleporting back issue?

Comments in 'Plugin Development' started by Legoboy0215, Feb 4, 2016.

  1. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    How would I fix the teleporting back issue? It is basically when you are lagging, it teleports you back. It is very annoying to me. Code ideas?
  2. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    If you remove the speed checks players will be able to use speed hacks as much as they want...
  3. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    I have my own speed checks.
  4. korado531m7
    Offline

    korado531m7 Active Member

    Joined:
    Apr 4, 2015
    Posts:
    158
    Minecraft User:
    korado531m7
    You can disable or edit the check movement function at Player.php, Player_32bit.php and Player_64bit.php in src.
    Please find the code
    PHP:
    if($this->isSurvival()){
                    if(!
    $revert and !$this->isSleeping()){
                        if(
    $diff 0.0625){
                            
    $revert true;
                            
    $this->server->getLogger()->warning($this->getServer()->getLanguage()->translateString("pocketmine.player.invalidMove", [$this->getName()]));
                        }
                    }
                }
    If deleted this code, it won't check movement.
    and maybe 0.0625 is speed. if you edit this value, you can change checking speed.
  5. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Um... But I never get the moved wrongly message.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Do you receive the "Blocked x.x.x.x for 5 seconds" message?

    If yes, enable debug and check.
    Legoboy0215 likes this.
  7. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    No.
  8. FuxonPlayz
    Offline

    FuxonPlayz New Member

    Joined:
    Feb 16, 2016
    Posts:
    25
    Minecraft User:
    FuxonPlayz
    i want to know how to fix this annoying problem
    my server is sh*t with this issuse

Share This Page

Advertisement