diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 858e40f7..bc191b5c 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -178,8 +178,8 @@ namespace ReallifeGamemode.Server.Commands #region Support - [Command("tog", "~m~Benutzung: ~s~/tog [Typ = ~g~IP~s~, ~g~deathlogs~s~, ~g~LC~s~, ~g~Connect~s~]", GreedyArg = true)] - public void CmdTog(Player player, string typ, string option1 = null, string option2 = null) + [Command("tog", "~m~Benutzung: ~s~/tog [Typ = ~g~IP~s~, ~g~deathlogs~s~, ~g~LC~s~, ~g~Connect~s~, ~g~D~s~, ~g~GA~s~, ~g~All~s~]", GreedyArg = true)] + public void CmdAdminTog(Player player, string typ, string option1 = null, string option2 = null) { if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) { @@ -264,6 +264,34 @@ namespace ReallifeGamemode.Server.Commands player.SendNotification("~g~[Info]~w~ GA-Chat wird nun angezeigt."); } break; + case "all": + if(!player.HasData("togall")) + { + player.SetData("togip", true); + player.SetData("togdeath", true); + player.SetData("togdeathlogs", true); + player.SetData("toglc", true); + player.SetData("togconnect", true); + player.SetData("togd", true); + player.SetData("togga", true); + player.SetData("togall", true); + + player.SendNotification("~g~[Info]~s~ Alle Logs wurden eingeschaltet"); + } + else + { + player.ResetData("togip"); + player.ResetData("togdeath"); + player.ResetData("togdeathlogs"); + player.ResetData("toglc"); + player.ResetData("togconnect"); + player.ResetData("togd"); + player.ResetData("togga"); + player.ResetData("togall"); + + player.SendNotification("~g~[Info]~s~ Alle Logs wurden ausgeschaltet"); + } + break; } }