Exception_Prototype

Untitled

Aug 7th, 2017
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
  2. public void onProjectileHitEvent(ProjectileHitEvent event) {
  3.     Block block = event.getHitBlock();
  4.     if (block != null) {
  5.         Location loc = block.getLocation();
  6.         //TODO: Ты получил блок и его локацию, куда попала стрела, далее сам. За*бал.
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment