mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 09:06:46 +01:00
Use EntityDamage event instead of EntityDamageByEnitity
This commit is contained in:
parent
2225e542ad
commit
c6db11a10b
@ -1,7 +1,6 @@
|
|||||||
package com.gmail.nossr50.skills.acrobatics;
|
package com.gmail.nossr50.skills.acrobatics;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
|
||||||
import org.bukkit.event.entity.EntityDamageEvent;
|
import org.bukkit.event.entity.EntityDamageEvent;
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||||
@ -48,7 +47,7 @@ public class AcrobaticsManager {
|
|||||||
*
|
*
|
||||||
* @param event The event to check
|
* @param event The event to check
|
||||||
*/
|
*/
|
||||||
public void dodgeCheck(EntityDamageByEntityEvent event) {
|
public void dodgeCheck(EntityDamageEvent event) {
|
||||||
if (!permHandler.canDodge()) {
|
if (!permHandler.canDodge()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.gmail.nossr50.skills.acrobatics;
|
package com.gmail.nossr50.skills.acrobatics;
|
||||||
|
|
||||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
import org.bukkit.event.entity.EntityDamageEvent;
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||||
import com.gmail.nossr50.datatypes.SkillType;
|
import com.gmail.nossr50.datatypes.SkillType;
|
||||||
@ -9,7 +9,7 @@ import com.gmail.nossr50.util.Misc;
|
|||||||
import com.gmail.nossr50.util.Skills;
|
import com.gmail.nossr50.util.Skills;
|
||||||
|
|
||||||
public class DodgeEventHandler extends AcrobaticsEventHandler {
|
public class DodgeEventHandler extends AcrobaticsEventHandler {
|
||||||
protected DodgeEventHandler(AcrobaticsManager manager, EntityDamageByEntityEvent event) {
|
protected DodgeEventHandler(AcrobaticsManager manager, EntityDamageEvent event) {
|
||||||
super(manager, event);
|
super(manager, event);
|
||||||
|
|
||||||
calculateSkillModifier();
|
calculateSkillModifier();
|
||||||
|
Loading…
Reference in New Issue
Block a user