mirror of https://github.com/Minestom/Minestom.git
Updated Events (markdown)
parent
1719cfa432
commit
06a280bb4c
|
@ -20,7 +20,7 @@ player.addEventCallback(PlayerBlockInteractEvent.class, event -> {
|
|||
|
||||
Basics events are listed [here](https://github.com/Minestom/Minestom/tree/master/src/main/java/net/minestom/server/event)
|
||||
|
||||
The recommended way of how and where to put the listeners is by using ConnectionManager#addPlayerInitialization, it is basically called just after the player object to be created
|
||||
The recommended way of how and where to put the listeners is by using ConnectionManager#addPlayerInitialization, it is basically called just after the creation of the player object (you SHOULDN'T do anything other than registering events)
|
||||
|
||||
```java
|
||||
ConnectionManager connectionManager = MinecraftServer.getConnectionManager();
|
||||
|
|
Loading…
Reference in New Issue