diff --git a/CompatNoCheatPlus/cncp_lists.txt b/CompatNoCheatPlus/cncp_lists.txt index f0abb99..12a2f32 100644 --- a/CompatNoCheatPlus/cncp_lists.txt +++ b/CompatNoCheatPlus/cncp_lists.txt @@ -22,6 +22,9 @@ STACK VERSION HISTORY --------------------------- +(0.2.2) +- (bugfix) Add noswing treatment for mcMMO. + (0.2.1) - (bugfix) Checks if plugins are present for hooks. diff --git a/CompatNoCheatPlus/src/me/asofold/bukkit/cncp/hooks/mcmmo/HookmcMMO.java b/CompatNoCheatPlus/src/me/asofold/bukkit/cncp/hooks/mcmmo/HookmcMMO.java index 8bf1dc7..cd1448d 100644 --- a/CompatNoCheatPlus/src/me/asofold/bukkit/cncp/hooks/mcmmo/HookmcMMO.java +++ b/CompatNoCheatPlus/src/me/asofold/bukkit/cncp/hooks/mcmmo/HookmcMMO.java @@ -26,8 +26,10 @@ public final class HookmcMMO extends AbstractHook implements Listener { private static final Map cancelChecksBlockDamage = new HashMap(); private static final Map cancelChecksDamage = new HashMap(); static{ + cancelChecksBlockBreak.put("noswing", 1); cancelChecksBlockBreak.put("fastbreak", 2); cancelChecksBlockDamage.put("fastbreak", 1); + cancelChecksDamage.put("angle", 1); cancelChecksDamage.put("speed", 1); } @@ -59,7 +61,7 @@ public final class HookmcMMO extends AbstractHook implements Listener { @Override public String[][] getCheckSpec() { return new String[][]{ - {"blockbreak", "fastbreak"}, + {"blockbreak", "fastbreak", "noswing"}, {"fight", "angle", "speed"}, }; }