1.6.1 not working??

Discussion in 'Plugin Development' started by shohouku, Jul 2, 2013.

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

    shohouku

    Code:
    e.getPlayer().damage(7);
    p.setHealth(20);  
    What are the new codes for these??

    I'v been trying to do a lot of experiments but I cannot seem to find it :confused:
     
  2. Offline

    pkt

    I don't recommend using the 1.6 API yet, as they just started development...
     
    shohouku likes this.
  3. Offline

    LucasEmanuel

    shohouku
    They require doubles instead of integers now. Adding "D" to the end of the values should fix it:
    Code:
    e.getPlayer().damage(7D);
    p.setHealth(20D);  
     
    shohouku and microgeek like this.
  4. Offline

    shohouku

    thank you!!
     
  5. Offline

    skore87


    Whaaat? Health is a Double now and not an int with a max of 20?
     
  6. Offline

    LucasEmanuel

  7. Offline

    _CynicalSura

    Thank you this helped me a lot ^_^
     
Thread Status:
Not open for further replies.

Share This Page