Fix mail
This commit is contained in:
parent
fe4bc9c560
commit
e062856ae7
1 changed files with 2 additions and 1 deletions
|
@ -85,8 +85,9 @@ module.exports = {
|
|||
const source = context.source
|
||||
const bot = source.bot
|
||||
const player = source.getPlayerOrThrow()
|
||||
const playerData = bot.playerData[player.uuid]
|
||||
|
||||
delete bot.mail[player.username]
|
||||
delete playerData.data.mail
|
||||
bot.tellraw({ text: 'Your mail has been cleared', ...bot.styles.primary }, createUuidSelector(player.uuid))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue