# PlayerReviveEvent
> Fired when a player is revived. Can be cancelled to prevent the revive.
`gg.lode.observerapi.api.event`
---
## Signature
```java
public class PlayerReviveEvent extends BaseEvent implements Cancellable
```
---
## Methods
### getPlayer
```java
public Player getPlayer()
```
**Returns:** `Player` - the player being revived
---
### getLocation
```java
public Location getLocation()
```
**Returns:** `Location` - the location the player will respawn at
---
### setLocation
```java
public void setLocation(Location location)
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `location` | `Location` | The new respawn location |
---
### 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
- [[PlayerEliminatedEvent]]
- [[IRespawnManager]]