Toast

Sending toast message.

What is Toast Message?

It is a message that pops up on top of the game.

Example

import Toast from './src/api/packets/Toast.js'

const toast = new Toast()
.setTitle('Player Update')
.setMessage('You move!')

toast.execute(player)

API

interface Toast {
    setMessage(text: string)
    setTitle(text: string)
    execute(player: Player)
}

Last updated