mirror of
https://github.com/asofold/CompatNoCheatPlus.git
synced 2024-11-28 12:55:25 +01:00
(bugfix) Add noswing treatment for mcMMO.
This commit is contained in:
parent
19e0d9fa5f
commit
d2a57b490b
@ -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.
|
||||
|
||||
|
@ -26,8 +26,10 @@ public final class HookmcMMO extends AbstractHook implements Listener {
|
||||
private static final Map<String, Integer> cancelChecksBlockDamage = new HashMap<String, Integer>();
|
||||
private static final Map<String, Integer> cancelChecksDamage = new HashMap<String, Integer>();
|
||||
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"},
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user