mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-25 03:55:11 +01:00
Updated Server setup (markdown)
parent
4a51677eb6
commit
5bdcf48774
@ -16,14 +16,7 @@ Here is a correct example:
|
||||
PlayerInit.init();
|
||||
|
||||
// Create the ResponseDataConsumer and start the server
|
||||
minecraftServer.start("localhost", 55555, (playerConnection, responseData) -> {
|
||||
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>");
|
||||
});
|
||||
minecraftServer.start("localhost", 55555);
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user