This is perfect, thanks
Hey guys, I'm trying to make a small API for spawning in particles. I have been looking here for information, but there's a slight hiccup; I'm not...
fireblast709 Wow. This is exactly what I needed! Thank you so much.
I have also tried this: ((Player) e.getEntity()).damage(50.0D, ((Arrow) e.getDamager()).getShooter()); But this makes things weird. The first time...
Thanks for the reply, valon. This would work, but it needs to keep whoever shot the arrow as the killer.
This might sound like a really basic question, but I'm having a lot of trouble with it. I need to make all arrows which hit a player instantly...
You were right. I had a duplicate interactevent listener which was messing with it. Thanks :) Edit: Ok, apparantly not a 100% fix. This does...
I've tried Double.MAX_VALUE, it didn't fix it
Normally this would work, but there needs to be a killer, specifically the person who shot the gun.
Here is the whole event: @EventHandler public void onShoot(PlayerInteractEvent e) { if...
Hey guys, so I've done some experimenting with code, as well as a fair share of googling, and nothing helpful has turned up. What I need to do...
Yep, fixed it. Didn't even think of that. Good catch. Ah, good catch :) I'll edit the post.
I took the code from the craftbukkit github repository and edited it myself, but I'm not 100% sure that the code I took it from was the same...
This isn't tested, but it should work: Player p = (get player); Location loc = p.getLocation(); int x = loc.getBlockX(); int z =...
http://www.mkyong.com/java/java-how-to-get-current-date-time-date-and-calender/ this should work.
Separate names with a comma.