From 6209b861491a5bfb7471170185dfba21301a3cf0 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Mon, 7 Sep 2026 14:03:06 +0200 Subject: [PATCH] Fix TeamCommand.info --- .../src/de/steamwar/velocitycore/commands/TeamCommand.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/VelocityCore/src/de/steamwar/velocitycore/commands/TeamCommand.java b/VelocityCore/src/de/steamwar/velocitycore/commands/TeamCommand.java index c73b256c..0e9b7aba 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/commands/TeamCommand.java +++ b/VelocityCore/src/de/steamwar/velocitycore/commands/TeamCommand.java @@ -287,6 +287,10 @@ public class TeamCommand extends SWCommand { @Register(value = "info", description = "TEAM_INFO_USAGE") public void info(Chatter sender, @ErrorMessage("UNKNOWN_TEAM") Team team) { + if (team.getMembers().isEmpty()) { + sender.system("UNKNOWN_TEAM"); + return; + } List users = team.getMembers().stream().map(SteamwarUser::byId).toList(); sender.system("TEAM_INFO_TEAM", team.getTeamName(), team.getTeamColor(), team.getTeamKuerzel());