fix balbos dreck

This commit is contained in:
hydrant
2019-09-12 22:49:15 +02:00
parent 42084b2f4f
commit e88a5d46e1
2 changed files with 9 additions and 13 deletions

View File

@@ -68,11 +68,9 @@ namespace ReallifeGamemode.Server.Events
ChatService.BroadcastGroup(msg, user.Group); ChatService.BroadcastGroup(msg, user.Group);
} }
GlobalHelper.FillCustomJoinMessages(); if (GlobalHelper.CustomJoinMessages.ContainsKey(player.SocialClubName))
if (GlobalHelper.customJoinMessages.ContainsKey(player.SocialClubName))
{ {
ChatService.BroadcastAdmin(GlobalHelper.customJoinMessages[player.SocialClubName], AdminLevel.TEAM); ChatService.BroadcastAdmin(GlobalHelper.CustomJoinMessages[player.SocialClubName], AdminLevel.TEAM);
} else if (user.IsAdmin(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); ChatService.BroadcastAdmin("!{#FFFF00}*** " + user.Name +"(ID: " + player.Handle.Value + ")" + " hat sich als " + GlobalHelper.AdminLevelToString(user.AdminLevel) + " eingeloggt!", AdminLevel.TEAM);

View File

@@ -8,16 +8,14 @@ namespace ReallifeGamemode.Server.Util
{ {
public static class GlobalHelper public static class GlobalHelper
{ {
public static List<Client> dutyAdmins = new List<Client>(); public static List<Client> DutyAdmins = new List<Client>();
public static Dictionary<string, string> customJoinMessages = new Dictionary<string, string>(); public static Dictionary<string, string> CustomJoinMessages = new Dictionary<string, string>
public static void FillCustomJoinMessages()
{ {
customJoinMessages.Add("murcel1337", "Miesester Projektleiter ist da! (aviatge)"); { "murcel1337", "Miesester Projektleiter ist da! (aviatge)" },
customJoinMessages.Add(".MichaPlays.", "Der Echte Ballas Leader ist online (MichaPlays)"); { ".MichaPlays.", "Der Echte Ballas Leader ist online (MichaPlays)" },
customJoinMessages.Add("balboistderbeste", "Hurra! Hurra! Der Balbo ist jetzt da!"); { "balboistderbeste", "Hurra! Hurra! Der Balbo ist jetzt da!" }
} };
public static string AdminLevelToString(AdminLevel lvl) public static string AdminLevelToString(AdminLevel lvl)
{ {