Glad your back.
Umm, help? Please, I really need it.
public static LivingEntity getTarget(LivingEntity startEntity, int maxDistance) { List<Entity> nearbyE =...
Bump. There are errors.
Yes full class
Whole class?
I still am not sure? @EventHandler public void click(PlayerInteractEvent e) { Boolean broken = false; Player player =...
Thanks, I want it to heal the player you are LOOKING at within 12 blocks. Like dis? @EventHandler public void click(PlayerInteractEvent e)...
Here is my code @EventHandler public void click(PlayerInteractEvent e) { Boolean broken = false; Player player = e.getPlayer();...
I only did a few, but here is what I added @EventHandler public void click(PlayerInteractEvent e) { Boolean broken = false; Player...
I am not sure about anything, thats why I need your guys help.
Can you post your whole class?
The constructor if undefined because you didn't even use it.
I switched the code around. That code isn't good. How does this look? @EventHandler public void click(PlayerInteractEvent e) { Boolean...
Like this? for(int i =0; i <= player.getLocation().distanceSquared(t.getLocation() ); i++) { But next to t.getLocation, it...
Since you want to check to see if they are 12 blocks away, you need to check if their distance squared is 144 or less.
And how would I do that?
Error with this: sender.sendMessage(ChatColor.RED+ playersonly); Your forgot the "" It is mean't t0 be like this for text....
My friend did that, doesn't make much sense, I'll delete it.
Oh yeah, it lowers, didn't add that xD. This new thread is for something different, and new code.
Separate names with a comma.