# PlayerEliminatedEvent
> Fired when a player is eliminated from the game. Can be cancelled to prevent elimination.
`gg.lode.observerapi.api.event`
---
## Signature
```java
public class PlayerEliminatedEvent extends BaseEvent implements Cancellable
```
---
## Methods
### getPlayer
```java
public Player getPlayer()
```
**Returns:** `Player` - the eliminated player
---
### getKiller
```java
public @Nullable LivingEntity getKiller()
```
**Returns:** `@Nullable LivingEntity` - the entity that killed the player, or `null` if no killer
---
### getDeathMessage
```java
public Component getDeathMessage()
```
**Returns:** `Component` - the death message
---
### setDeathMessage
```java
public void setDeathMessage(Component deathMessage)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `deathMessage` | `Component` | The new death message |
---
### getDrops
```java
public List<ItemStack> getDrops()
```
**Returns:** `List<ItemStack>` - the items dropped on elimination
---
### setDrops
```java
public void setDrops(List<ItemStack> drops)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `drops` | `List<ItemStack>` | The items to drop on elimination |
---
### isCancelled
```java
public boolean isCancelled()
```
**Returns:** `boolean` - `true` if the event is cancelled
---
### setCancelled
```java
public void setCancelled(boolean cancelled)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `cancelled` | `boolean` | Whether to cancel the event |
---
## Related Pages
- [[IEliminationManager]]
- [[PlayerReviveEvent]]