From fe67703311121d3209124195aca43b90b26bd518 Mon Sep 17 00:00:00 2001 From: TheComputerGeek2 Date: Sat, 3 Dec 2016 17:58:56 -0800 Subject: [PATCH] Added MagicSpells events to existing class based exemption hooks. - BlockBreak - BlockPlace - EntityDamageByEntity --- .../src/me/asofold/bpl/cncp/hooks/generic/HookBlockBreak.java | 2 ++ .../src/me/asofold/bpl/cncp/hooks/generic/HookBlockPlace.java | 4 +++- .../bpl/cncp/hooks/generic/HookEntityDamageByEntity.java | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CompatNoCheatPlus/src/me/asofold/bpl/cncp/hooks/generic/HookBlockBreak.java b/CompatNoCheatPlus/src/me/asofold/bpl/cncp/hooks/generic/HookBlockBreak.java index 7f5246e..41fa045 100644 --- a/CompatNoCheatPlus/src/me/asofold/bpl/cncp/hooks/generic/HookBlockBreak.java +++ b/CompatNoCheatPlus/src/me/asofold/bpl/cncp/hooks/generic/HookBlockBreak.java @@ -25,6 +25,8 @@ public class HookBlockBreak extends ClassExemptionHook implements Listener { "ArtificialBlockBreakEvent", // mcMMO "FakeBlockBreakEvent", + // MagicSpells + "MagicSpellsBlockBreakEvent" })); } diff --git a/CompatNoCheatPlus/src/me/asofold/bpl/cncp/hooks/generic/HookBlockPlace.java b/CompatNoCheatPlus/src/me/asofold/bpl/cncp/hooks/generic/HookBlockPlace.java index 9280fa2..1e2870c 100644 --- a/CompatNoCheatPlus/src/me/asofold/bpl/cncp/hooks/generic/HookBlockPlace.java +++ b/CompatNoCheatPlus/src/me/asofold/bpl/cncp/hooks/generic/HookBlockPlace.java @@ -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" })); } diff --git a/CompatNoCheatPlus/src/me/asofold/bpl/cncp/hooks/generic/HookEntityDamageByEntity.java b/CompatNoCheatPlus/src/me/asofold/bpl/cncp/hooks/generic/HookEntityDamageByEntity.java index 412d888..f5ba3fd 100644 --- a/CompatNoCheatPlus/src/me/asofold/bpl/cncp/hooks/generic/HookEntityDamageByEntity.java +++ b/CompatNoCheatPlus/src/me/asofold/bpl/cncp/hooks/generic/HookEntityDamageByEntity.java @@ -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