TD-4: Added banning functionality
All checks were successful
Quality Check / Validate OAS (push) Successful in 32s
Quality Check / Linting (push) Successful in 1m1s
Quality Check / Testing (push) Successful in 1m0s
Quality Check / Static Analysis (push) Successful in 1m4s

This commit is contained in:
Dorian Nemec 2025-03-12 13:16:57 +01:00
parent 482b795b6f
commit 2f651afe09
2 changed files with 6 additions and 0 deletions

View file

@ -97,8 +97,12 @@ components:
type: string
id:
type: integer
format: int64
banned:
type: boolean
required:
- username
- banned
#############################################
# PlayerFilter #
#############################################

View file

@ -15,6 +15,8 @@ public class PlayerMapperService {
for (Player player : players) {
AdministratablePlayer apiPlayer = new AdministratablePlayer();
apiPlayer.setUsername(player.getUsername());
apiPlayer.setId(player.getId());
apiPlayer.setBanned(player.isBanned());
administratablePlayers.add(apiPlayer);
}
return administratablePlayers;