(bugfix) Add noswing treatment for mcMMO.

This commit is contained in:
asofold 2012-07-23 18:09:04 +02:00
parent 19e0d9fa5f
commit d2a57b490b
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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"},
};
}