Added MagicSpells events to existing class based exemption hooks.

- BlockBreak
- BlockPlace
- EntityDamageByEntity
This commit is contained in:
TheComputerGeek2 2016-12-03 17:58:56 -08:00
parent 4c265ec186
commit fe67703311
3 changed files with 8 additions and 2 deletions

View File

@ -25,6 +25,8 @@ public class HookBlockBreak extends ClassExemptionHook implements Listener {
"ArtificialBlockBreakEvent", "ArtificialBlockBreakEvent",
// mcMMO // mcMMO
"FakeBlockBreakEvent", "FakeBlockBreakEvent",
// MagicSpells
"MagicSpellsBlockBreakEvent"
})); }));
} }

View File

@ -22,7 +22,9 @@ public class HookBlockPlace extends ClassExemptionHook implements Listener{
super("block-place."); super("block-place.");
defaultClasses.addAll(Arrays.asList(new String[]{ defaultClasses.addAll(Arrays.asList(new String[]{
// MachinaCraft // MachinaCraft
"ArtificialBlockPlaceEvent" "ArtificialBlockPlaceEvent",
// MagicSpells
"MagicSpellsBlockPlaceEvent"
})); }));
} }

View File

@ -20,7 +20,9 @@ public class HookEntityDamageByEntity extends ClassExemptionHook implements
super("entity-damage-by-entity."); super("entity-damage-by-entity.");
defaultClasses.addAll(Arrays.asList(new String[] { defaultClasses.addAll(Arrays.asList(new String[] {
// CrackShot // CrackShot
"WeaponDamageEntityEvent", })); "WeaponDamageEntityEvent",
// MagicSpells
"MagicSpellsEntityDamageByEntityEvent" }));
} }
@Override @Override