diff --git a/ReallifeGamemode.Server/Commands/FactionCommands.cs b/ReallifeGamemode.Server/Commands/FactionCommands.cs index ed509a3b..dc5bef39 100644 --- a/ReallifeGamemode.Server/Commands/FactionCommands.cs +++ b/ReallifeGamemode.Server/Commands/FactionCommands.cs @@ -102,6 +102,36 @@ namespace ReallifeGamemode.Server.Commands #endregion Chat Commands + + #region NewsReporter commands + + [Command("news", "~m~Benutzung: ~s~/news [Nachricht]", GreedyArg = true)] + public void CmdFactionNR(Player player, string message) + { + Faction f = player.GetUser()?.Faction; + if (f == null) + { + ChatService.NotAuthorized(player); + return; + } + if (player.GetUser().Faction.Id == 9 ) + { + message = Regex.Replace(message, "(~[a-zA-Z]~)|(!{(.*)})", ""); + + string broadcastMessage = "!{ff9531}** News Reporter" + " " + player.Name + ": " + message + " **"; + ChatService.Broadcast(broadcastMessage); + } + else + { + return; + } + } + + + + + + #endregion NewsReporter commands #region Leader Commands [Command("giverank", "~m~Benutzung: ~s~/giverank [Name] [Rang]", GreedyArg = true)] @@ -433,4 +463,6 @@ namespace ReallifeGamemode.Server.Commands #endregion Staatsfraktionen (LSPD / FBI) Commands } + + }