ItemFrames and others - BlockPlaceEvent

Discussion in 'Plugin Help/Development/Requests' started by Robin Bi, Mar 22, 2015.

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

    Robin Bi

    Hi there :3


    So when I place an ItemFrame a Painting or something like that what's actually an entity instead of a block, it's no BlockPlaceEvent. Since I'm trying to limit the amount of ItemFrames, Paintings, some blocks and so on in a chunk, I need to listen the Event though.

    PlayerInteractEntityEvent isn't the right thing either. Does anyone have an idea? I guess I'm just blind again...



    Best regards,
    Robin Bi
     
  2. Offline

    RainoBoy97

    HangingPlaceEvent
     
  3. Offline

    Robin Bi

    Tested it for item frames and paintings, that works. What about Armor Stands? Seems to be neither the BlockPlaceEvent nor the HangingPlaceEvent.
    @RainoBoy97
     
  4. Offline

    nverdier

    @Robin Bi For armor stands just use a PlayerInteractEvent and check if the item in the Player's hand is an Armor Stand. Does that work?
     
  5. Offline

    Robin Bi

    @nverdier Looks like it does... I'll use it instead of HangingPlaceEvent then too, to avoid doubling... We'll see how it works out in future.
     
Thread Status:
Not open for further replies.

Share This Page