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

[Solved] [New API] Can't cancel Player Move Event

Comments in 'Plugin Development' started by Adaasi, Sep 8, 2014.

  1. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Upload your whole code.
  2. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    78
    Yes I'll upload it as soon as possible
  3. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    78
    This is the full plugin source code (debug code is included):

    Attached Files:

  4. args
    Offline

    args New Member

    Joined:
    Jun 14, 2014
    Posts:
    47
    Minecraft User:
    args
    Hey I just tested it out on the server on my computer. It's working fine! So I'm guessing its a problem with your server. Have you tried a different version of pocketmine? It's fine on windows 32 with the latest beta.
  5. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    78
    Are you sure?
    I'm running test server on:
    Windows 7 64bit (x64)
    Using PocketMine-PM Alpha_1.4dev-546
  6. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    it sometimes cause by lag. try relogin.
  7. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    78
    Are you sure?
    Yes, you can see the DEBUG message but a player is free to move. Instead the event should be cancelled!
  8. sekjun9878
    Offline

    sekjun9878 Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    108
    Plugins:
    1
    Minecraft User:
    sekjun9878
    Try displaying the coordinates of the player to the console after the event is cancelled. See if it's just a client-side bug or an actual server issue.
    PEMapModder and Adaasi like this.
  9. args
    Offline

    args New Member

    Joined:
    Jun 14, 2014
    Posts:
    47
    Minecraft User:
    args
    Yup! works 100% as intended on my server, the player is stuck in one spot and is unable to move at all, and the debug message keeps appearing over and over. try a different version and see if it works?

    I think I'm using pm version 640, so that's like 100 updates after the version you're on i think unless I read the version thing wrong. Id guess it's an error with that particular version but its certainly a big bug to be in any beta version at all..
  10. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    78
    GOOD IDEA! THANKS :)
  11. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    78
    Thank you :)! Is a client bug!

Share This Page

Advertisement