Development Assistance Flaming arrow?

Discussion in 'Plugin Help/Development/Requests' started by ShadowCuzon, Dec 3, 2014.

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

    ShadowCuzon

    Hey bukkit developers. :) I've been searching for the event to shoot a flaming arrow, but in my code, out of an iron sword. This is what I have so far:

    Code:java
    1. if ((event.getAction() == Action.RIGHT_CLICK_AIR)
    2. || (event.getAction() == Action.RIGHT_CLICK_BLOCK)) {
    3. if (!p.hasPermission("abilities.fireshot")) {
    4. p.sendMessage(ChatColor.BLUE + "Abilities" + ChatColor.WHITE
    5. + " | " + ChatColor.GRAY
    6. + "You may not use this ability!");
    7. return;
    8. }
    9. if (p.getItemInHand().getType() == Material.IRON_SWORD) {
    10. p.sendMessage(ChatColor.BLUE + "Abilities" + ChatColor.WHITE
    11. + " | " + ChatColor.GRAY + "You used fire shot!");
    12. for (int i = 0; i < 1; i++) {
    13. p.launchProjectile(Arrow.class);
     
  2. Offline

    ShadowCuzon

  3. Offline

    stirante

Thread Status:
Not open for further replies.

Share This Page