Add warning if check does not exist
This commit is contained in:
parent
fcaf4538bd
commit
c4c46b6ba2
@ -597,6 +597,9 @@ public class AntiHack extends MiniPlugin
|
|||||||
private IChatBaseComponent getMinimalMessage(MajorViolationCommand violation)
|
private IChatBaseComponent getMinimalMessage(MajorViolationCommand violation)
|
||||||
{
|
{
|
||||||
Class<? extends Check> checkType = CheckManager.getCheckBySimpleName(violation.getHackType());
|
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("")
|
IChatBaseComponent component = new ChatComponentText("")
|
||||||
.addSibling(
|
.addSibling(
|
||||||
new ChatComponentText("A")
|
new ChatComponentText("A")
|
||||||
|
Loading…
Reference in New Issue
Block a user