Admin: /tog all @AIRMAKE
This commit is contained in:
@@ -178,8 +178,8 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
|
|
||||||
#region Support
|
#region Support
|
||||||
|
|
||||||
[Command("tog", "~m~Benutzung: ~s~/tog [Typ = ~g~IP~s~, ~g~deathlogs~s~, ~g~LC~s~, ~g~Connect~s~]", GreedyArg = true)]
|
[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 CmdTog(Player player, string typ, string option1 = null, string option2 = null)
|
public void CmdAdminTog(Player player, string typ, string option1 = null, string option2 = null)
|
||||||
{
|
{
|
||||||
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
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.");
|
player.SendNotification("~g~[Info]~w~ GA-Chat wird nun angezeigt.");
|
||||||
}
|
}
|
||||||
break;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user