mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Bleeding particle effect added.
This commit is contained in:
parent
6d5ce1357e
commit
85dc6e51d2
@ -6,6 +6,8 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
|
import org.bukkit.Effect;
|
||||||
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.LivingEntity;
|
import org.bukkit.entity.LivingEntity;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -48,6 +50,7 @@ public class BleedTimer implements Runnable {
|
|||||||
//Never kill with Bleeding
|
//Never kill with Bleeding
|
||||||
if (player.getHealth() - 1 > 0) {
|
if (player.getHealth() - 1 > 0) {
|
||||||
CombatTools.dealDamage(player, 1);
|
CombatTools.dealDamage(player, 1);
|
||||||
|
player.getWorld().playEffect(player.getEyeLocation(), Effect.STEP_SOUND, Material.REDSTONE_WIRE);
|
||||||
}
|
}
|
||||||
|
|
||||||
entry.setValue(entry.getValue() - 1);
|
entry.setValue(entry.getValue() - 1);
|
||||||
@ -60,6 +63,7 @@ public class BleedTimer implements Runnable {
|
|||||||
else {
|
else {
|
||||||
CombatTools.dealDamage(entity, 2);
|
CombatTools.dealDamage(entity, 2);
|
||||||
entry.setValue(entry.getValue() - 1);
|
entry.setValue(entry.getValue() - 1);
|
||||||
|
entity.getWorld().playEffect(entity.getEyeLocation(), Effect.STEP_SOUND, Material.REDSTONE_WIRE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user