mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-25 12:05:13 +01:00
Updated Server setup (markdown)
parent
4a51677eb6
commit
5bdcf48774
@ -16,14 +16,7 @@ Here is a correct example:
|
|||||||
PlayerInit.init();
|
PlayerInit.init();
|
||||||
|
|
||||||
// Create the ResponseDataConsumer and start the server
|
// Create the ResponseDataConsumer and start the server
|
||||||
minecraftServer.start("localhost", 55555, (playerConnection, responseData) -> {
|
minecraftServer.start("localhost", 55555);
|
||||||
responseData.setName("1.15.2");
|
|
||||||
responseData.setProtocol(578);
|
|
||||||
responseData.setMaxPlayer(100);
|
|
||||||
responseData.setOnline(MinecraftServer.getConnectionManager().getOnlinePlayers().size());
|
|
||||||
responseData.setDescription("Test Minestom server");
|
|
||||||
responseData.setFavicon("data:image/png;base64,<data>");
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user