added custom join messages
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user