mirror of
https://github.com/tiennm99/caro.git
synced 2026-09-02 14:20:02 +00:00
+1
-1
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user