mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 19:24:44 +02:00
Change damage to use events system
Should provide a fix for issue #39 Also update pom and removed an unused import.
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
package com.gmail.nossr50.runnables;
|
||||
import org.bukkit.entity.*;
|
||||
|
||||
import com.gmail.nossr50.Combat;
|
||||
import com.gmail.nossr50.Users;
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||
@ -60,7 +61,7 @@ public class mcTimer implements Runnable
|
||||
*/
|
||||
if(thecount % 2 == 0 && PP.getBleedTicks() >= 1)
|
||||
{
|
||||
player.damage(2);
|
||||
Combat.dealDamage(player, 2);
|
||||
PP.decreaseBleedTicks();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user