fix error

This commit is contained in:
hydrant
2019-05-26 17:47:35 +02:00
parent e616e6af1f
commit cc8544b76c
4 changed files with 14 additions and 10 deletions

View File

@@ -4,6 +4,7 @@ using ReallifeGamemode.Server.Extensions;
using ReallifeGamemode.Server.Job;
using ReallifeGamemode.Server.Util;
using System.Collections.Generic;
using System.Linq;
/**
* @overview Life of German Reallife - Chat Service (ChatService.cs)
@@ -36,6 +37,8 @@ namespace ReallifeGamemode.Server.Services
player.SendChatMessage(message);
}
public static void Broadcast(string message) => NAPI.Pools.GetAllPlayers().Where(c => c.IsLoggedIn()).ToList().ForEach(c => SendMessage(c, message));
/// <summary>
/// Sendet eine Nachricht an eine Liste von Fraktionen
/// </summary>