fix balbos dreck
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user