How to get the block someone is looking at?

Discussion in 'Plugin Development' started by NerdsWBNerds, May 30, 2012.

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

    NerdsWBNerds

    When a player gets a command how can I get whichever block they care currently looking at?
     
  2. Offline

    travja

  3. Offline

    jamw

    Code:
    Player player = (Player) sender;
     
    player.getTargetBlock.getType();
    
    Should be something like that
     
Thread Status:
Not open for further replies.

Share This Page