Merge pull request #50 from ZuoFuhong/hotfix-49

Fix #49
This commit is contained in:
Nico
2020-05-19 21:23:00 +08:00
committed by GitHub
@@ -20,7 +20,7 @@ public class ClientEventListener_CODE_SHOW_ROOMS extends ClientEventListener{
List<Map<String, Object>> roomList = Noson.convert(data, new NoType<List<Map<String, Object>>>() {});
if(roomList != null && ! roomList.isEmpty()){
// "COUNT" begins after NICKNAME_MAX_LENGTH characters. The dash means that the string is left-justified.
String format = "#\t%s\t|\t%-" + NICKNAME_MAX_LENGTH + "s\t|\t%s\t|\t%s\t#\n";
String format = "#\t%s\t|\t%-" + NICKNAME_MAX_LENGTH + "s\t|\t%-6s\t|\t%-6s\t#\n";
FormatPrinter.printNotice(format, "ID", "OWNER", "COUNT", "TYPE");
for(Map<String, Object> room: roomList) {
FormatPrinter.printNotice(format, room.get("roomId"), room.get("roomOwner"), room.get("roomClientCount"), room.get("roomType"));