Add warning if check does not exist

This commit is contained in:
samczsun 2016-11-12 15:39:40 -05:00
parent fcaf4538bd
commit c4c46b6ba2

View File

@ -597,6 +597,9 @@ public class AntiHack extends MiniPlugin
private IChatBaseComponent getMinimalMessage(MajorViolationCommand violation)
{
Class<? extends Check> 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")