|
**Description:** Checks the target's last damage cause
|
|
## Description
|
|
|
|
Checks the target's last damage cause.
|
|
|
|
You can find a list of valid damage causes on the [Spigot Javadoc](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html)
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
**Attributes:**
|
|
## Attributes
|
|
|
|
|
|
| Attribute | Alias | Description |
|
|
| Attribute | Aliases | Description | Default |
|
|
| ----------- | -------- | ------------------------- |
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| damagecause | cause, c | The damage cause to match |
|
|
| damagecause | cause, c | The damage cause to match | ENTITY_ATTACK |
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
List of all possible damage causes:
|
|
|
|
|
|
|
|
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
**Examples:**
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
```yaml
|
|
|
|
Conditions:
|
|
|
|
- lastdamagecause{c=ENTITY_ATTACK} true
|
|
``` |
|
``` |
|
|
|
\ No newline at end of file |
|
Conditions:
|
|
|
|
- lastdamagecause{c=ENTITY_ATTACK} true
|
|
|
|
```
|
|
|
|
|
|
|
|
**Extra Information:**
|
|
|
|
|
|
|
|
- [x] Type: Entity |
|
|
|
\ No newline at end of file |
|
|