Admin: /tog all @AIRMAKE

This commit is contained in:
hydrant
2021-04-22 13:59:38 +02:00
parent e669425dd8
commit a830b32711

View File

@@ -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;
}
}