Player Kicked bc of 'Moved wrongly' on teleport

Discussion in 'Plugin Development' started by Codisimus, Dec 1, 2011.

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

    Codisimus

    In my ButtonWarp Plugin, when a Player presses a button, they teleport. This all works fine for buttons but pressure plates do not work. The console says 'moved wrongly' and the player is kicked if they are not an op.

    I'm pretty sure this error is occuring bc the player is moving when activating the pressure plate (they step on it while walking). there is no error if the player falls onto the plate. What is happening is my plugin teleports the player within the PlayerInteractEvent so afterwards the players trys to finish their original move (walking onto the pressure plate)

    I hope that makes sense. I've been at this for hours and am not sure how to fix it despite making a separate listener for PlayerMove so I can cancel the move event. I hope someone here has a better idea.

    PlayerListener
    https://github.com/Codisimus/Button...gins/buttonwarp/listeners/playerListener.java

    Warp Class (that contains the activate method which in turn teleports the Player)
    https://github.com/Codisimus/ButtonWarp/blob/master/src/com/codisimus/plugins/buttonwarp/Warp.java

    Thanks,
    Codisimus
     
Thread Status:
Not open for further replies.

Share This Page