Bugfix
This commit is contained in:
parent
17e1576f68
commit
8e7dd2bb4b
1 changed files with 4 additions and 2 deletions
|
@ -43,7 +43,8 @@ module.exports = {
|
|||
}
|
||||
})
|
||||
b._client.on('profileless_chat', (data) => {
|
||||
const messageType = b.messageTypes[data.type]
|
||||
let messageType = b.messageTypes[data.type]
|
||||
if(messageType === undefined) messageType = {translation_key: "%s", parameters: ["content"]}
|
||||
const json = { translate: messageType.translation_key, with: [] }
|
||||
messageType.parameters.forEach((item, i) => {
|
||||
if (item === 'content') {
|
||||
|
@ -73,7 +74,8 @@ module.exports = {
|
|||
})
|
||||
|
||||
b._client.on('player_chat', (data) => {
|
||||
const messageType = b.messageTypes[data.type]
|
||||
let messageType = b.messageTypes[data.type]
|
||||
if(messageType === undefined) messageType = {translation_key: "%s", parameters: ["content"]}
|
||||
const json = { translate: messageType.translation_key, with: [] }
|
||||
messageType.parameters.forEach((item, i) => {
|
||||
if (item === 'content') {
|
||||
|
|
Loading…
Reference in a new issue