Auto-Enchant

Discussion in 'Plugin Development' started by bc112354, Jun 27, 2014.

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

    bc112354

    How can I make it so a player with a certain permission automatically gets enchants on there bow?
     
  2. Offline

    Dubehh

    What did you try?
     
  3. Offline

    broswen

    When you say automatically what do you mean? When they pick it up? When they craft it? When they enchant it? When they shoot it?
     
    AoH_Ruthless likes this.
  4. Offline

    bc112354

    Dubehh Listening for an attack and applying Fire 1 to the arrow, no dice.
    @browsen Picking it up if possible
     
  5. Offline

    Dubehh

    bc112354
    Use the ProjectileLaunchEvent, give the projectile an MetaData, and on ProjectileHitEvent, check if the arrow has a certain data, then set the enemy on fire?

    If you just want a fire effect on the arrow, arrow.setFireTicks(int)
     
  6. Offline

    tommyhoogstra

    PlayerPickupItemEvent

    check if player.haspermission(Permission specified)

    if they do, apply the enchantments to the item picked up (if its a bow)
     
Thread Status:
Not open for further replies.

Share This Page