Note about favicon format

This commit is contained in:
thiccaxe 2021-04-04 15:57:42 -07:00
parent cf4a8756ef
commit 4f8e94dcf2
2 changed files with 6 additions and 1 deletions

View File

@ -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) {

View File

@ -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();