# TeamSetSpawnEvent
> Fired when a team's spawn location is set. Cancellable.
`gg.lode.leadapi.api.event.TeamSetSpawnEvent`
---
## Signature
```java
public class TeamSetSpawnEvent extends BaseEvent implements Cancellable
```
## Extends / Implements
- `BaseEvent`
- `Cancellable`
**Cancellable:** Yes
---
## Constructor
```java
TeamSetSpawnEvent(ITeam team, @Nullable Location spawnLocation)
```
---
## Methods
### getTeam
```java
ITeam getTeam()
```
Returns the team whose spawn is being set.
**Returns:** `ITeam` — The team.
---
### getSpawnLocation
```java
@Nullable Location getSpawnLocation()
```
Returns the new spawn location.
**Returns:** `Location` — The spawn location, or `null`.
---
### isCancelled / setCancelled
```java
boolean isCancelled()
void setCancelled(boolean b)
```
Controls whether the spawn set is cancelled.
---
## Related Pages
- [[TeamResetSpawnEvent]] — Fired when the spawn is cleared
- [[ITeam]] — The team involved