// List of banned items/blocks
const bannedItems = [
  'furniture:trash_bag'
]

const bannedBlocks = [
  'furniture:bin'
]

// Stop banned items from being right-clicked (used)
bannedItems.forEach(id => {
  ItemEvents.rightClicked(id, event => {
    event.cancel()
    event.player.tell(`${id} is disabled on this server.`)
  })
})

// Stop banned blocks from being placed
bannedBlocks.forEach(id => {
  BlockEvents.placed(event => {
    if (event.block.id === id) {
      event.cancel()
      event.player.tell(`${id} is disabled on this server.`)
    }
  })
})
