From a82058270126e8472f6e42b7c84e1412c2331755 Mon Sep 17 00:00:00 2001 From: jasonlaubb <136591629+jasonlaubb@users.noreply.github.com> Date: Thu, 19 Sep 2024 22:16:05 +0800 Subject: [PATCH] Update CommandHandler.ts --- ac_BP/src/Functions/chatModel/CommandHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ac_BP/src/Functions/chatModel/CommandHandler.ts b/ac_BP/src/Functions/chatModel/CommandHandler.ts index 4090ba8c..e41186ff 100644 --- a/ac_BP/src/Functions/chatModel/CommandHandler.ts +++ b/ac_BP/src/Functions/chatModel/CommandHandler.ts @@ -1,6 +1,7 @@ import * as Minecraft from "@minecraft/server"; import { c, getPLevel, isAdmin, rawstr } from "../../Assets/Util"; import { system } from "@minecraft/server"; +import { MatrixUsedTags } from "../../Data/EnumData"; export function verifier(player: Minecraft.Player, setting: CommandConfig) { if (setting.enabled !== true) { @@ -13,7 +14,7 @@ export function verifier(player: Minecraft.Player, setting: CommandConfig) { } } else if (setting.requireTag.length > 0 && !player.getTags().some((tag) => setting.requireTag.includes(tag))) { return false; - } else if (setting.requireOp === true && !player.isOp()) { + } else if (setting.requireOp === true && !player.hasTag(MatrixUsedTags.op)) { return false; } return true;