diff --git a/plugins/commands/about.js b/plugins/commands/about.js index 689085c..7475817 100644 --- a/plugins/commands/about.js +++ b/plugins/commands/about.js @@ -4,11 +4,11 @@ const version = require("../../version.json") const settings = require('../../settings.json') module.exports = { execute: function (c) { - c.reply({"text":"'+settings.name+' - a minecraft bot made by 77c8f4699b732c11 / a5a06d596f15c7db"}); - c.reply({"text":""}); - c.reply({"text":"Version '+version.bot+'"}); - c.reply({"text":""}); - c.reply({"text":"To view system information, run the command \"serverinfo\"."}) + c.reply({text:`${settings.name} - a minecraft bot made by 77c8f4699b732c11 / a5a06d596f15c7db`}); + c.reply({text:""}); + c.reply({text:`Version ${version.bot}`}); + c.reply({text:""}); + c.reply({text:"To view system information, run the command \"serverinfo\"."}) }, desc: 'About the bot', usage: '', diff --git a/plugins/commands/eval.js b/plugins/commands/eval.js index f6243d1..4f79f7e 100644 --- a/plugins/commands/eval.js +++ b/plugins/commands/eval.js @@ -14,5 +14,6 @@ module.exports={ }, desc: "Run JavaScript code", // Command description usage: '', // Command usage - hidden: true + hidden: true, + level: 3 } diff --git a/plugins/commands/netmsg.js b/plugins/commands/netmsg.js index b915574..d2a9fe8 100644 --- a/plugins/commands/netmsg.js +++ b/plugins/commands/netmsg.js @@ -29,7 +29,7 @@ module.exports={ color: "white" } for(const i in bot){ - bot[i].tellraw("@a",JSON.stringify(json)) + bot[i].tellraw("@a",json) } }, desc: "Send a message to all servers the bot is connected to", // Command description diff --git a/plugins/commands/serverinfo.js b/plugins/commands/serverinfo.js index 64e8971..b61ad49 100755 --- a/plugins/commands/serverinfo.js +++ b/plugins/commands/serverinfo.js @@ -6,7 +6,7 @@ const version = require("../../version.json") const fs=require("fs") const gr = function (text, value, color) { if (!color) color = 'white' - return JSON.stringify({ + return { translate: '%s: %s', with: [ { @@ -28,7 +28,7 @@ const gr = function (text, value, color) { action: 'copy_to_clipboard', value } - }) + } } const os2 = function (o2) {