mirror of
https://github.com/asofold/CompatNoCheatPlus.git
synced 2025-01-23 21:41:20 +01:00
- (adjust) Also exempt mcMMO from WrongBlock check, disable insta break
hook (for ncp 88+), limit to 20 blcokbreaks per second by default.
This commit is contained in:
parent
9fdd6e8ef1
commit
5d43f83351
@ -43,6 +43,9 @@ add a good mechanism for adding external configurable hooks (read automatically
|
||||
VERSION HISTORY
|
||||
---------------------------
|
||||
|
||||
(6.2.2)
|
||||
- (adjust) Also exempt mcMMO from WrongBlock check, disable insta break hook (for ncp 88+), limit to 20 blcokbreaks per second by default.
|
||||
|
||||
(6.2.1)
|
||||
- (bugfix) Fix priorities of InstaBreak hook.
|
||||
|
||||
|
@ -29,7 +29,7 @@ public class HookInstaBreak extends AbstractHook implements ConfigurableHook, Li
|
||||
|
||||
@Override
|
||||
public String getHookVersion() {
|
||||
return "1.0";
|
||||
return "1.1";
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -40,7 +40,7 @@ public class HookInstaBreak extends AbstractHook implements ConfigurableHook, Li
|
||||
@Override
|
||||
public boolean updateConfig(CompatConfig cfg, String prefix) {
|
||||
CompatConfig defaults = CompatConfigFactory.getConfig(null);
|
||||
defaults.set(prefix + "insta-break.enabled", true);
|
||||
defaults.set(prefix + "insta-break.enabled", false);
|
||||
return ConfigUtil.forceDefaults(defaults, cfg);
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,8 @@ public class HookFacadeImpl implements HookFacade, NCPHook {
|
||||
/** Normal click per block skills. */
|
||||
protected final CheckType[] exemptBreakNormal = new CheckType[]{
|
||||
CheckType.BLOCKBREAK_FASTBREAK, CheckType.BLOCKBREAK_FREQUENCY,
|
||||
CheckType.BLOCKBREAK_NOSWING,
|
||||
CheckType.BLOCKBREAK_NOSWING,
|
||||
CheckType.BLOCKBREAK_WRONGBLOCK, // Not optimal but ok.
|
||||
};
|
||||
|
||||
|
||||
@ -86,7 +87,7 @@ public class HookFacadeImpl implements HookFacade, NCPHook {
|
||||
|
||||
@Override
|
||||
public String getHookVersion() {
|
||||
return "2.0";
|
||||
return "2.1";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -69,7 +69,7 @@ public final class HookmcMMO extends AbstractHook implements Listener, Configura
|
||||
|
||||
@Override
|
||||
public String getHookVersion() {
|
||||
return "2.0";
|
||||
return "2.1";
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -166,7 +166,7 @@ public final class HookmcMMO extends AbstractHook implements Listener, Configura
|
||||
CompatConfig defaults = CompatConfigFactory.getConfig(null);
|
||||
defaults.set(prefix + configPrefix + "enabled", true);
|
||||
defaults.set(prefix + configPrefix + "use-insta-break-hook", true);
|
||||
defaults.set(prefix + configPrefix + "clickspersecond", 30);
|
||||
defaults.set(prefix + configPrefix + "clickspersecond", 20);
|
||||
return ConfigUtil.forceDefaults(defaults, cfg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user