Solved Firework Launch Event?

Discussion in 'Plugin Development' started by rohan576, Jul 5, 2014.

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

    rohan576

    Hey guys. In my plugin, I don't want people to be able to launch fireworks, so I want to cancel some kind of event when it occurs. However, I can't find an event that can check to see when a firework is launched. Could I get any help with this? As a note, I've already tried using ProjectileLaunchEvent, and it doesn't work.

    Thanks!
     
  2. Offline

    MCForger

    rohan576
    PlayerInteractEvent
    If the player has a firework in the player's hand when they right click on a block/air cancel the event.
     
  3. Offline

    mythbusterma

    MCForger rohan576

    Also cancel InventoryEvent if someone wants to place it in a dispenser.
     
  4. Offline

    MCForger

  5. Offline

    mythbusterma

    Kind of a wash either way.
     
  6. Offline

    rohan576

    MCForger mythbusterma

    Thanks for the help! I was thinking, and I assumed that was what I should do.
    I ended up using MCForger 's method because players can't place things in dispensers.
    However, thank you so much as well, mythbusterma !
     
Thread Status:
Not open for further replies.

Share This Page