Fixed hundreds of small issues, code improvements, typos, ...

This commit is contained in:
2025-01-16 00:25:23 +01:00
parent ace34fc0e8
commit 0ffe3198e6
44 changed files with 331 additions and 351 deletions

View File

@@ -71,9 +71,7 @@ import fr.pandacube.lib.util.log.Log;
try {
DB.getAll(SQLPermissions.class, SQLPermissions.type.eq(EntityType.User.getCode()))
.stream()
.collect(Collectors.groupingBy(el -> el.get(SQLPermissions.name),
Collectors.toCollection(() -> new SQLElementList<SQLPermissions>())
)
.collect(Collectors.groupingBy(el -> el.get(SQLPermissions.name))
)
.forEach((idStr, pData) -> {
try {
@@ -100,7 +98,7 @@ import fr.pandacube.lib.util.log.Log;
return initPlayer(playerId, playerData);
}
private CachedPlayer initPlayer(UUID playerId, SQLElementList<SQLPermissions> playerData) {
private CachedPlayer initPlayer(UUID playerId, List<SQLPermissions> playerData) {
Map<String, List<SQLPermissions>> playerRawData = playerData.stream()
.collect(