mirror of
https://github.com/asofold/CompatNoCheatPlus.git
synced 2024-11-24 12:16:46 +01:00
Added MagicSpells events to existing class based exemption hooks.
- BlockBreak - BlockPlace - EntityDamageByEntity
This commit is contained in:
parent
4c265ec186
commit
fe67703311
@ -25,6 +25,8 @@ public class HookBlockBreak extends ClassExemptionHook implements Listener {
|
||||
"ArtificialBlockBreakEvent",
|
||||
// mcMMO
|
||||
"FakeBlockBreakEvent",
|
||||
// MagicSpells
|
||||
"MagicSpellsBlockBreakEvent"
|
||||
}));
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,9 @@ public class HookBlockPlace extends ClassExemptionHook implements Listener{
|
||||
super("block-place.");
|
||||
defaultClasses.addAll(Arrays.asList(new String[]{
|
||||
// MachinaCraft
|
||||
"ArtificialBlockPlaceEvent"
|
||||
"ArtificialBlockPlaceEvent",
|
||||
// MagicSpells
|
||||
"MagicSpellsBlockPlaceEvent"
|
||||
}));
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,9 @@ public class HookEntityDamageByEntity extends ClassExemptionHook implements
|
||||
super("entity-damage-by-entity.");
|
||||
defaultClasses.addAll(Arrays.asList(new String[] {
|
||||
// CrackShot
|
||||
"WeaponDamageEntityEvent", }));
|
||||
"WeaponDamageEntityEvent",
|
||||
// MagicSpells
|
||||
"MagicSpellsEntityDamageByEntityEvent" }));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user