"Moved too Quickly" Fix?

Discussion in 'Plugin Development' started by puyttre, Oct 30, 2012.

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

    puyttre

    Hi,

    I loaded my plugin to my server without any errors but whenever I want to execute this line of code:
    Code:java
    1.  
    2. p.setVelocity(new Vector(0, 50, 0));
    3.  

    my server console spams:
    Show Spoiler

    Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 22.666599720638164, 0.0)
    2012-10-30 17:48:34 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 22.134868157030603, 0.0)
    2012-10-30 17:48:34 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 21.613771214553218, 0.0)
    2012-10-30 17:48:34 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 20.602634677950263, 0.0)
    2012-10-30 17:48:34 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 20.112182375829452, 0.0)
    2012-10-30 17:48:34 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 19.63153911039642, 0.0)
    2012-10-30 17:48:34 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 18.69889889101424, 0.0)
    2012-10-30 17:48:34 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 18.24652126832127, 0.0)
    2012-10-30 17:48:34 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 17.80319118945374, 0.0)
    2012-10-30 17:48:34 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 17.368727703707712, 0.0)
    2012-10-30 17:48:34 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 16.525694731437387, 0.0)
    2012-10-30 17:48:34 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 16.116781150485373, 0.0)
    2012-10-30 17:48:34 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 15.716045833352993, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 14.938459001364798, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 14.561290104740117, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 14.191664578854002, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 13.474443187556448, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 13.126554579284047, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 12.785623736541647, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 12.124081510036183, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 11.803200109558082, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 11.488736330969218, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 10.878550797241541, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 10.58257998726272, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 10.292528587838282, 0.0)
    2012-10-30 17:48:35 [WARNING] Puyttre moved too quickly! 0.0,0.0,0.0 (0.0, 10.00827821087004, 0.0)

    and keeps my player at the ground.

    The code I posted above is supposed to launch the player in the air. I tried adding this to my onJoin event, as mentioned in previous posts about this bug:
    Code:java
    1.  
    2. ((CraftPlayer) e.getPlayer()).getHandle().netServerHandler.checkMovement = false;
    3.  


    I would like to know how to fix this with my own code, not another plugin or jar library. I am using CraftBukkit 1.3.2 R3.0 to run my server, and I am referencing both the Bukkit 1.3.2 R3.0 library and the Craftbukkit 1.3.2 R3.0 library in my plugin.

    Note: I do not get kicked when it says "Moving too fast" but either way, I added an event handler that disallowed the server from kicking players for moving too fast.

    Thanks!
     
  2. Offline

    gamerzap

    I had this same error, and I just ended up having to lower the velocity. By the way, 50 doesn't mean 50 blocks, it's more like 156 blocks in a second.
     
    Timr likes this.
  3. Offline

    puyttre

    Yes I know :)
    I would like to keep it as it is but I guess I can lower it a little bit :/
    If anyone has a fix though, please say so.

    Edit: I'm fine with setting the velocity to 10 (because that's about the lowest it can go), but I really would like to know if someone has a fix for this still ;) thanks!
     
  4. Offline

    Scizzr

    The only way I could get it to allow such high velocity changes was to compile my own modified version of CraftBukkit.
    I really don't think there is a way to do this without editing CraftBukkit code. If you want to know what I edited, feel free to PM me here.
     
  5. Offline

    gomeow

    I know there are plugins that do it...
     
  6. Offline

    skipperguy12

    Tell us what plugins you are using. NoCheatPlus will stop you from doing this, to prevent hacking.
     
  7. Offline

    gamerzap

    Craftbukkit will stop you, even just by itself.
     
Thread Status:
Not open for further replies.

Share This Page