Add some Faction commands, Try EF error fix

This commit is contained in:
Lennart Kampshoff
2018-09-23 13:34:02 +02:00
parent c35b81629f
commit 22df6c6a2e
4 changed files with 81 additions and 13 deletions

View File

@@ -20,10 +20,15 @@ namespace reallife_gamemode.Server.Commands
public void CmdFactionF(Client player, string message)
{
User u = player.GetUser();
if(u.Faction == null)
{
ChatService.NotAuthorized(player);
return;
}
string broadcastMessage = "** " + player.Name + ": " + message + " )) **";
ChatService.BroadcastFaction(broadcastMessage, player.GetFaction());
ChatService.BroadcastFaction(broadcastMessage, u.Faction);
}
}
}