# TeamInviteEvent
> Fired when a player is invited to a team. Cancellable.
`gg.lode.leadapi.api.event.TeamInviteEvent`
---
## Signature
```java
public class TeamInviteEvent extends BaseEvent implements Cancellable
```
## Extends / Implements
- `BaseEvent`
- `Cancellable`
**Cancellable:** Yes
---
## Constructor
```java
TeamInviteEvent(ITeam team, Player target)
```
---
## Methods
### getTeam
```java
ITeam getTeam()
```
Returns the team sending the invitation.
**Returns:** `ITeam` — The inviting team.
---
### getTarget
```java
Player getTarget()
```
Returns the player being invited.
**Returns:** `Player` — The invited player.
---
### isCancelled / setCancelled
```java
boolean isCancelled()
void setCancelled(boolean b)
```
Controls whether the invitation is cancelled.
---
## Related Pages
- [[TeamJoinEvent]] — Fired when the invited player accepts and joins
- [[ITeam]] — The inviting team