Help with race plugin

Discussion in 'Plugin Development' started by Goksi, May 1, 2018.

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

    Goksi

    Hi, i am trying to make some kind of race plugin, do you have idea how i can register someone who goes through the goal first ?
     
  2. Offline

    PriorityHacker

    Hi @Goksi ,Can you explain , what have you tried ? what type of help did you need ?
     
  3. Offline

    timtower Administrator Administrator Moderator

    @Goksi Define an area, check the player movement to see who enters it first.
     
  4. Offline

    Goksi

    Hi, sorry for the late reply, was on some type of holiday, i tried this but its does not seems to work:
    Code:
    double x = 81.3;
    double x1 = 88.7;
    double z = -457;
    double y = 1
    if (l.getX() > x && l.getX() < x1 && l.getY() >= y && l.getZ() >= z) {
    do something
    }
    I put that inside of my onMove event, but it seems it always return false
     
Thread Status:
Not open for further replies.

Share This Page