# PlayerSwapCapsulesEvent
> Fired when two players swap capsules.
`gg.lode.observerapi.api.event`
---
## Signature
```java
public class PlayerSwapCapsulesEvent extends BaseEvent
```
---
## Fields
| Field | Type | Description |
|-------|------|-------------|
| `player` | `Player` | The first player in the swap |
| `with` | `Player` | The second player in the swap |
| `oldCapsule` | `Capsule` | The capsule the first player was in |
| `newCapsule` | `Capsule` | The capsule the first player moved to |
---
## Related Pages
- [[Capsule]]
- [[ICapsuleManager]]
- [[PlayerAssignedToCapsuleEvent]]