Solved PlayerMoveEvent

Discussion in 'Plugin Development' started by ewrs, Aug 26, 2018.

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

    timtower Administrator Administrator Moderator

    Loop over all the points where you want a particle.
    And if you want moving particles then there are more things involved.

    But this is all I am gonna say about it because it is a subject that I don't like.
     
  2. Offline

    ewrs

    Hi again. Forgive me for opening the topic again, but I forgot to ask you the question I wanted before closing the topic. How do I make sure PlayerMoveEvent does not respond to mouse / cursor moves / view?
     
  3. Offline

    timtower Administrator Administrator Moderator

    You check if the old and new locations x,y and z are the same.
     
  4. Offline

    ewrs

    event.getFrom () == event.getTo () ?
     
  5. Offline

    timtower Administrator Administrator Moderator

    @ewrs check x, y and z individually
     
  6. Offline

    ewrs

    It's silly to make p.getLocation (). GetX = p.getLocation (). GetX
     
  7. Offline

    timtower Administrator Administrator Moderator

    @ewrs Welcome to programming.
    If you don't then you also check the direction they are looking in.
     
  8. Offline

    ewrs

    if(e.getPlayer().getLocation().getPitch() != e.getPlayer().getLocation().getPitch() && e.getPlayer().getLocation().getYaw() != e.getPlayer().getLocation().getYaw() && e.getPlayer().getLocation().getX() != e.getPlayer().getLocation().getX() && e.getPlayer().getLocation().getY() != e.getPlayer().getLocation().getY() && e.getPlayer().getLocation().getZ() != e.getPlayer().getLocation().getZ


    Now I work always.
     
  9. Offline

    timtower Administrator Administrator Moderator

    @ewrs 1. You are comparing the player location to the player location.
    2. You are checking pitch and yaw, that is direction, that is what you don't want.
    I will stop helping now. You are lacking some basic knowledge in my opinion.
    Good luck with your plugin.
     
  10. Offline

    ewrs

    I do not understand you, you say that you need to compare, and then that it's stupid. What does it mean???

    ===========================
    I expected help from people. It's sad.
    Apparently, they do not help here.
    ===========================

    UPD: However, I found a way out by myself.
     
    Last edited: Aug 27, 2018
Thread Status:
Not open for further replies.

Share This Page