mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-22 08:02:31 +01:00
Note about favicon format
This commit is contained in:
parent
cf4a8756ef
commit
4f8e94dcf2
@ -146,6 +146,8 @@ public class ResponseData {
|
||||
/**
|
||||
* Sets the response favicon.
|
||||
*
|
||||
* MUST start with "data:image/png;base64,"
|
||||
*
|
||||
* @param favicon The favicon for the response data.
|
||||
*/
|
||||
public void setFavicon(String favicon) {
|
||||
|
@ -67,7 +67,10 @@ public class Main {
|
||||
MinecraftServer.getGlobalEventHandler().addEventCallback(StatusRequestEvent.class, event -> {
|
||||
ResponseData responseData = event.getResponseData();
|
||||
responseData.addPlayer("IP test: " + event.getConnection().getRemoteAddress().toString(), UUID.randomUUID());
|
||||
responseData.addPlayer("Use " + (char)0x00a7 + "6section characters for formatting: (char)0x00a7", UUID.randomUUID());
|
||||
responseData.addPlayer("Use " + (char)0x00a7 + "7section characters", UUID.randomUUID());
|
||||
responseData.addPlayer((char)0x00a7 + "7" + (char)0x00a7 + "ofor formatting" + (char)0x00a7 + "r: (" + (char)0x00a7 + "6char" + (char)0x00a7 + "r)" + (char)0x00a7 + "90x00a7", UUID.randomUUID());
|
||||
|
||||
|
||||
});
|
||||
|
||||
PlayerInit.init();
|
||||
|
Loading…
Reference in New Issue
Block a user