login-nachricht für fraktionen hinzugefügt

This commit is contained in:
Luke
2021-06-01 05:17:36 +02:00
parent cf6ed7c71d
commit 340b30b53b

View File

@@ -109,6 +109,22 @@ namespace ReallifeGamemode.Server.Events
player.TriggerEvent("enableSpawnschutz"); player.TriggerEvent("enableSpawnschutz");
} }
if (user.FactionId != 0)
{
String msg = "";
if (user.Faction.StateOwned)
{
msg = "!{33AA33}** " + user.FactionRank.RankName + " " + player.Name + " meldet sich zum Dienst, over **";
}
else
{
msg = "!{02FCFF}** " + user.FactionRank.RankName + " " + player.Name + " ist wieder online **";
}
ChatService.BroadcastFaction(msg, user.Faction);
}
if (user.Group != null) if (user.Group != null)
{ {
string msg = $"{player.Name} ist wieder online."; string msg = $"{player.Name} ist wieder online.";