Solved command is working but give me error PLZ HELP ME!!! <-----------------

Discussion in 'Plugin Development' started by TheUpdater, Apr 25, 2013.

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

    stuntguy3000

    TheUpdater I highly recommend you learn basic java..because you don't seem to understand..anything.
     
  2. Offline

    TheUpdater

    load locations is not basics -.-
     
  3. Offline

    stuntguy3000

    Programming is not about the code, it is about the logic behind the code.
    Let me use your code as an example.

    So you're trying to teleport the player to a location,

    double x = getConfig().getDouble("s");
    p.teleport(x);

    I can see the lack of logic. Locations are made up of six things:
    - X
    - Y
    - Z
    - Yaw
    - Pitch
    - World

    You need those 6 things for a location to be valid.
    Your code, has no logic in it. You are only getting one value, in this case is x.

    See my point? If not, learn python and learn how to think logically.
     
  4. Offline

    TheUpdater

    i got it to work np dont need more help ty for support me =)
     
Thread Status:
Not open for further replies.

Share This Page