affwafgeaegwgeaw
This commit is contained in:
parent
a36dece7d4
commit
15b01bdfa1
3 changed files with 16 additions and 14 deletions
|
@ -10,12 +10,14 @@ const execute = c => {
|
|||
} else if (c.bot.host.options && c.bot.host.options.displayAsIPv6) {
|
||||
host = `[${host}]`
|
||||
}
|
||||
let msg = c.args.join(' ').slice(0, 512)
|
||||
msg = msg.replace(/:3/g, "")
|
||||
const json = {
|
||||
translate: '[%s] %s: %s',
|
||||
with: [
|
||||
{
|
||||
text: c.serverName,
|
||||
hoverEvent: {
|
||||
text: c.bot.host.options?.name ?? "console",
|
||||
/*hoverEvent: {
|
||||
action: 'show_text',
|
||||
value: {
|
||||
translate: '%s: %s:%s',
|
||||
|
@ -35,7 +37,7 @@ const execute = c => {
|
|||
],
|
||||
color: c.colors.secondary
|
||||
}
|
||||
},
|
||||
},*/
|
||||
color: c.colors.primary
|
||||
},
|
||||
{
|
||||
|
@ -43,13 +45,13 @@ const execute = c => {
|
|||
color: c.colors.primary
|
||||
},
|
||||
{
|
||||
text: c.args.join(' ').slice(0, 512)
|
||||
text: msg
|
||||
}
|
||||
],
|
||||
color: c.colors.tertiary
|
||||
}
|
||||
bots.forEach(item => {
|
||||
if (item.host.options && item.host.options.netmsgIncomingDisabled && c.type !== 'console') return
|
||||
if (item.host.options.netmsgIncomingDisabled && c.type !== 'console') return
|
||||
item.tellraw('@a', json)
|
||||
})
|
||||
}
|
||||
|
|
12
package-lock.json
generated
12
package-lock.json
generated
|
@ -39,9 +39,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "22.13.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.1.tgz",
|
||||
"integrity": "sha512-jK8uzQlrvXqEU91UxiK5J7pKHyzgnI1Qnl0QDHIgVGuolJhRb9EEl28Cj9b3rGR8B2lhFCtvIm5os8lFnO/1Ew==",
|
||||
"version": "22.13.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.4.tgz",
|
||||
"integrity": "sha512-ywP2X0DYtX3y08eFVx5fNIw7/uIv8hYUKgXoK8oayJlLnKcRfEYCxWMVE1XagUdVtCJlZT1AU4LXEABW+L1Peg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"undici-types": "~6.20.0"
|
||||
|
@ -424,9 +424,9 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"node_modules/minecraft-data": {
|
||||
"version": "3.83.1",
|
||||
"resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-3.83.1.tgz",
|
||||
"integrity": "sha512-5K26za9k5WV1OnfkGexA77lBhfGZeFw3rT3NM7/rbFXRZC65prCx7Tk2BQvC9UfzgxxvmxHfxM5y8G1U+Oxgfg==",
|
||||
"version": "3.84.1",
|
||||
"resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-3.84.1.tgz",
|
||||
"integrity": "sha512-0yPsnu4rYjbokPgm6aMqhIm70fhsUUYFMEbbqrLG7QGLQDUy3lauuVlh3ctRxtPP6vX/ywLo1p5Uczz3Snnocg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/minecraft-folder-path": {
|
||||
|
|
|
@ -75,9 +75,6 @@ export default function load (b) {
|
|||
b.on('chat_unparsed', (data) => {
|
||||
if (data.json.translate === 'commands.fill.failed' || (data.json.extra && data.json.extra[0] && data.json.extra[0].translate === 'commands.fill.failed') ||
|
||||
data.json.translate === 'commands.fill.success' || (data.json.extra && data.json.extra[0] && data.json.extra[0].translate === 'commands.fill.success')) {
|
||||
if (!b.ccStarted) {
|
||||
b.emit('ccstart')
|
||||
}
|
||||
b.sc_tasks.cc.failed = 0
|
||||
b.sc_tasks.cc_size.failed = 0
|
||||
} else if (data.json.translate === 'commands.fill.toobig' || (data.json.extra && data.json.extra[0] && data.json.extra[0].translate === 'commands.fill.toobig')) {
|
||||
|
@ -126,5 +123,8 @@ export default function load (b) {
|
|||
}
|
||||
if (cf) break
|
||||
}
|
||||
if (!cf && !b.ccStarted) {
|
||||
b.emit('ccstart')
|
||||
}
|
||||
}, 500)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue