From 3a99c7ce36abe05fa47eb3d373bd2f744edae185 Mon Sep 17 00:00:00 2001 From: 7cc5c4f330d47060 Date: Mon, 22 Jul 2024 14:42:18 -0400 Subject: [PATCH] Make console permission level 3 --- plugins/commands/eval.js | 2 +- util/ConsoleCommand.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/commands/eval.js b/plugins/commands/eval.js index b014bd3..c26efea 100644 --- a/plugins/commands/eval.js +++ b/plugins/commands/eval.js @@ -2,7 +2,7 @@ const textformat=require("../../util/textformat.js") const index=require("../../index.js") //Not used in the code, but may be used by users of the command module.exports={ execute: (c)=>{ - if(c.type!="console"){ + if(c.verify<3){ c.reply(textformat("Eval command is currently not available to players in Minecraft due to security issues.")) }; try{ diff --git a/util/ConsoleCommand.js b/util/ConsoleCommand.js index e2987f5..878942d 100644 --- a/util/ConsoleCommand.js +++ b/util/ConsoleCommand.js @@ -27,7 +27,7 @@ class ConsoleCommand{ this.type = 'console'; this.index = index2; this.args = cmd.split(' ').slice(1); - this.verify = true; + this.verify = 3; this.host = ""; this.port = "3"; // :3 }