Development Assistance Get block playing is looking at.

Discussion in 'Plugin Help/Development/Requests' started by jolbol1, Apr 8, 2015.

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

    jolbol1

    Just went to update an old plugin of mine and noticed getTargetBlock no longer works. Whats the new way to get the block a player crosshair is on?
     
  2. Offline

    nverdier

    @jolbol1 What doesn't work about it?
     
  3. Offline

    jolbol1

    player.getTargetBlock(null, 10); < old method

    It just has an error in the IDE, Ambiguous method call.
     
  4. Offline

    nverdier

    @jolbol1 Are you using CraftBukkit as the library? And what version of MC are you using?

    If you are using CraftBukkit, you should be using Bukkit, unless working with NMS/packets. If you are using either of those, then add Bukkit as a library and make it have a higher priority than CraftBukkit.
     
  5. Offline

    jolbol1

    I was using 1.8.3. Bukit was added.
     
  6. Offline

    nverdier

    @jolbol1 Does it have a higher priority?
     
Thread Status:
Not open for further replies.

Share This Page