Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5292

[Vanilla] "moved too quickly" when teleporting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • macOS 10.14.6

      Java:

      java version "1.8.0_201"

      Java(TM) SE Runtime Environment (build 1.8.0_201-b09)

    • running CraftBukkit version git-Bukkit-edd8fdf (MC: 1.14.4)
    • just my test plugin "RecipeTest"
    • Yes

      I noticed in a few plugins, that I would get warnings when teleporting the player too far of a distance:

      [09:46:01] [Server thread/WARN]: ShaneBee moved too quickly! -9775.5,12.999999799999998,-10887.5
      

      Now I totally understand if the player is flying around too quickly, or some other cheaty/hacky way, but for using the API, this shouldn't happen.

      I have tried with multiple methods:

      player.teleport(location);
      player.teleport(location, PlayerTeleportEvent.TeleportCause.COMMAND);
      player.teleport(location, PlayerTeleportEvent.TeleportCause.PLUGIN);
      

      It doesn't always seem like its consistently doing this, as seen here:

      [09:49:36] [Server thread/INFO]: ShaneBee issued server command: /test bed
      [09:49:37] [Server thread/INFO]: ShaneBee issued server command: /test spawn
      [09:49:39] [Server thread/INFO]: ShaneBee issued server command: /test bed
      [09:49:41] [Server thread/INFO]: ShaneBee issued server command: /test spawn
      [09:49:41] [Server thread/WARN]: ShaneBee moved too quickly! -9775.5,12.999999799999998,-10887.5
      [09:49:57] [Server thread/INFO]: ShaneBee issued server command: /test spawn
      [09:49:57] [Server thread/WARN]: ShaneBee moved too quickly! 54.825414400775514,-7.0,-110.00834118837719
      [09:50:06] [Server thread/INFO]: ShaneBee issued server command: /test spawn
      [09:50:06] [Server thread/WARN]: ShaneBee moved too quickly! 43.35016334702135,-10.132076626192557,75.2630756083436
      

      But I feel, when using the API, it should consistently NOT be doing this. This also seems to be happening when the player is in creative mode and spectator mode, not just survival mode.

       

      I have tested this on both CraftBukkit and Spigot, both with the same outcome

      CraftBukkit version: git-Bukkit-edd8fdf

      Spigot version: git-Spigot-a596182-edd8fdf

       

      I included a simple jar for testing. 

      Steps to reproduce:

      • Log into server
      • Fly away from spawn
      • run command "/test spawn" (this will teleport you to the world's spawn point)
      • observe console for warnings

       

      Thank you for reading!

            Unassigned Unassigned
            ShaneBee Shane Bee
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: