Solved .getTargetBlock() deprecated?

Discussion in 'Plugin Development' started by Pugmatt, Sep 29, 2013.

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

    Pugmatt

    Hello everyone. I'm not sure if this has been reported or not already, but I can not seem to get .getTargetBlock() to work in my plugin. I am using it to strike lightning in front of a player.

    Code:java
    1. player.getWorld().strikeLightning(player.getTargetBlock(null, 200).getLocation());


    It appears at this though in eclipse:
    [​IMG]

    I am using the latest Bukkit development build for the API also.
    Any help would be nice, if extra code is needed, I'll post it.

    Thanks,
    Pugmatt
     
  2. Offline

    Pugmatt

    Assist
    Okay thanks, I'll try it. :)

    [EDIT] Works! Thank you so much, you saved my butt. :p
     
Thread Status:
Not open for further replies.

Share This Page