Checking if placed block has a name & lore???

Discussion in 'Plugin Development' started by Creeperboy69, Nov 14, 2019.

  1. Offline

    Creeperboy69

    I wanna check if a block i placed had a certain display name and lore.
     
  2. Offline

    Strahan

    Listen to BlockPlaceEvent and check (BlockPlaceEvent)#getItemInHand() to see if it has the name/lore for which you are looking.
     

Share This Page