adventuretc If you cancel the event, the shooter won't be damaged, but the projectile will be deleted.
mythbusterma Apologize, did not notice that.
Block#setData is the way to set the data of a placed block.
Oh, thank you so much.
fireblast709 Oh, got it! But the field 'at' is not an integer, but there's a field called attackTicks and it's an integer, which of them should I use?
fireblast709 Why do I need to use scoreboard teams? I haven't tried all the projectiles but I guess all of projectiles that can damage players do...
Hello Bukkit, I got a problem with Entity#setPassenger() method, when I set a player as a passenger on a projectile, like EnderPearls or Arrows,...
GeorgeeeHD What I need is getting the location of where to knock them back. I have the location of where they entered only. GeorgeeeHD Never...
Hey Bukkit, I'm trying to make a plugin contains a squared distance protection so when someone go into any of them it'll be knock the player back....
en.setVelocity(en.getLocation().getDirection().setY(0.15D));
Monkey_Swag Good luck with it, I cannot try it :(
Same :)
Have you tried BlockPlaceEvent?
Monkey_Swag You are welcome.
mrCookieSlime Names FTW<3:p
nivek1212 I meant the names of players are in ArrayList. You also can get them using getName() method.
mrCookieSlime Can't he keep it and use the name of the player instead?
Make sure you've registered your listeners, also make sure that spectators is a real list and it does contain names (as mythbusterma said)
Replicate it, so... Snowball ball = player.getWorld().spawn(loc, Snowball.class); Snowball ball2 = player.getWorld().spawn(loc2, Snowball.class);...
You are welcome..
Separate names with a comma.