import Modal from './src/api/packets/Modal.js'
const modal = new Modal()
.setId(69)
.setTitle('Player Modification')
.setContent('Enable fly command?')
.setButton1('Yes') // if player click this button, it will `true`
.setButton2('No')// if player click this button, it will `false`
modal.onResponse = (player, accepted) => {
if(accepted)
player.send('Modal: You accepted')
else
player.send('Modal: You declined')
}
modal.execute(player)