Solved Do something once when a player sneaks

Discussion in 'Plugin Development' started by iBecameALoaf, Jun 6, 2014.

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

    iBecameALoaf

    I'm trying to figure out how I can do an action one time when a player sneaks. For example, I press the sneak key once and I will receive a message. I'm trying to figure out if this is possible by using PlayerMoveEvent and using a boolean to make sure it only fires once when the player sneaks, but I'm still a little confused exactly how to do that.
    Thanks!
     
  2. Offline

    xTigerRebornx

    iBecameALoaf likes this.
  3. Offline

    iBecameALoaf

    oh... that's an event? I'll try that.
     
  4. Offline

    xTigerRebornx

  5. Offline

    Mrawesomecookie

  6. Offline

    iBecameALoaf

    Alright, thanks everyone!

    Nothing, I just got it working :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 30, 2016
Thread Status:
Not open for further replies.

Share This Page