From c4c46b6ba2b1c8e7e0082ac66a44cea6662455ae Mon Sep 17 00:00:00 2001 From: samczsun Date: Sat, 12 Nov 2016 15:39:40 -0500 Subject: [PATCH] Add warning if check does not exist --- Plugins/Mineplex.Core/src/mineplex/core/antihack/AntiHack.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/antihack/AntiHack.java b/Plugins/Mineplex.Core/src/mineplex/core/antihack/AntiHack.java index 02a30e20e..eb6470342 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/antihack/AntiHack.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/antihack/AntiHack.java @@ -597,6 +597,9 @@ public class AntiHack extends MiniPlugin private IChatBaseComponent getMinimalMessage(MajorViolationCommand violation) { Class checkType = CheckManager.getCheckBySimpleName(violation.getHackType()); + if (!CHECKS.containsKey(checkType)) { + System.out.println("Warning: Unknown check type '" + violation.getHackType() + "' " + checkType); + } IChatBaseComponent component = new ChatComponentText("") .addSibling( new ChatComponentText("A")