# LecternHandshakeEvent
> Called when a player's Lectern mod client successfully completes the handshake.
`gg.lode.lecternapi.api.event.LecternHandshakeEvent`
---
## Signature
```java
public class LecternHandshakeEvent extends Event
```
---
## Overview
Fired when a player's Lectern client completes the handshake with the server. After this event fires, the player can receive Lectern effect packets. Use this event to initialize player-specific effects or send an initial state.
---
## Methods
### getPlayer
```java
public Player getPlayer()
```
Gets the player who completed the Lectern handshake.
**Returns:** The `Player` who connected with the Lectern mod.
---
### getModId
```java
public String getModId()
```
Gets the mod identifier reported by the client.
**Returns:** The mod ID string.
---
## Example
```java
@EventHandler
public void onHandshake(LecternHandshakeEvent event) {
Player player = event.getPlayer();
player.sendMessage("Lectern mod detected! Effects enabled.");
}
```
---
## Related Pages
- [[Overview]] — Events overview