added missing gradle files

This commit is contained in:
2023-11-11 23:22:52 +01:00
parent 541eb1e733
commit 2306308071
8 changed files with 112 additions and 22 deletions

View File

@@ -18,7 +18,7 @@ public class RoomCommand extends PrivilegedCommand {
Room.getAllRooms().forEach((roomInstance) -> out
.newLine()
.appendStatic("Owner: ").appendStatic(roomInstance.getOwner().getUsername()).newLine()
.appendStatic("Owner: ").appendStatic(roomInstance.getOwner() != null ? roomInstance.getOwner().getUsername() : "none").newLine()
.appendStatic("Players: ").appendStatic(String.valueOf(roomInstance.getAllMembers().size())).newLine()
.list(roomInstance.getAllMembers().stream().map(Player::getUsername).collect(Collectors.toList())).newLine());