added custom join messages

This commit is contained in:
2019-09-12 22:45:00 +02:00
parent 6babfa1e2f
commit 42084b2f4f
2 changed files with 16 additions and 2 deletions

View File

@@ -67,8 +67,13 @@ namespace ReallifeGamemode.Server.Events
string msg = $"{player.Name} ist wieder online.";
ChatService.BroadcastGroup(msg, user.Group);
}
if (user.IsAdmin(AdminLevel.TEAM))
GlobalHelper.FillCustomJoinMessages();
if (GlobalHelper.customJoinMessages.ContainsKey(player.SocialClubName))
{
ChatService.BroadcastAdmin(GlobalHelper.customJoinMessages[player.SocialClubName], AdminLevel.TEAM);
} else if (user.IsAdmin(AdminLevel.TEAM))
{
ChatService.BroadcastAdmin("!{#FFFF00}*** " + user.Name +"(ID: " + player.Handle.Value + ")" + " hat sich als " + GlobalHelper.AdminLevelToString(user.AdminLevel) + " eingeloggt!", AdminLevel.TEAM);
}