notifications bei /tog angepasst

This commit is contained in:
Luke
2021-05-09 01:42:34 +02:00
parent c10fae6f77
commit 404a2bbc97

View File

@@ -172,7 +172,7 @@ 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~, ~g~D~s~, ~g~GA~s~, ~g~All~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 CmdAdminTog(Player player, string typ, string option1 = null, string option2 = null)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
@@ -187,12 +187,12 @@ namespace ReallifeGamemode.Server.Commands
if (player.HasData("togip"))
{
player.ResetData("togip");
player.SendNotification("~g~[Info]~w~ Ip´s werden nun ausgeblendet.");
player.SendNotification("Die IP-Adressen sind nun ~r~deaktiviert~s~.");
}
else
{
player.SetData("togip", true);
player.SendNotification("~g~[Info]~w~ Ip´s werden nun angezeigt.");
player.SendNotification("Die IP-Adressen sind nun ~g~aktiviert~s~.");
}
break;
@@ -200,12 +200,12 @@ namespace ReallifeGamemode.Server.Commands
if (player.HasData("togdeath"))
{
player.ResetData("togdeath");
player.SendNotification("~g~[Info]~w~ Deathlogs werden nun ausgeblendet.");
player.SendNotification("Du hast die Todesbenachrichtigungen ~r~deaktiviert~s~.");
}
else
{
player.SetData("togdeath", true);
player.SendNotification("~g~[Info]~w~ Deathlogs werden nun angezeigt.");
player.SendNotification("Du hast die Todesbenachrichtigungen ~g~aktiviert~s~.");
}
break;
@@ -213,12 +213,12 @@ namespace ReallifeGamemode.Server.Commands
if (player.HasData("toglc"))
{
player.ResetData("toglc");
player.SendNotification("~g~[Info]~w~ Leaderchat wird nun ausgeblendet.");
player.SendNotification("Du hast den /lc-Chat ~r~deaktiviert~s~.");
}
else
{
player.SetData("toglc", true);
player.SendNotification("~g~[Info]~w~ Leaderchat wird nun angezeigt.");
player.SendNotification("Du hast den /lc-Chat ~g~aktiviert~s~.");
}
break;
@@ -226,36 +226,36 @@ namespace ReallifeGamemode.Server.Commands
if (player.HasData("togconnect"))
{
player.ResetData("togconnect");
player.SendNotification("~g~[Info]~w~ Connect-Logs werden nun ausgeblendet.");
player.SendNotification("Du hast die Connect-Nachrichten ~r~deaktiviert~s~.");
}
else
{
player.SetData("togconnect", true);
player.SendNotification("~g~[Info]~w~ Connect-Logs werden nun angezeigt.");
player.SendNotification("Du hast die Connect-Nachrichten ~g~aktiviert~s~.");
}
break;
case "d":
if (player.HasData("togd"))
{
player.ResetData("togd");
player.SendNotification("~g~[Info]~w~ D-Chat wird nun ausgeblendet.");
player.SendNotification("Du hast den /d-Chat ~r~deaktiviert~s~.");
}
else
{
player.SetData("togd", true);
player.SendNotification("~g~[Info]~w~ D-Chat wird nun angezeigt.");
player.SendNotification("Du hast den /d-Chat ~g~aktiviert~s~.");
}
break;
case "ga":
if (player.HasData("togga"))
{
player.ResetData("togga");
player.SendNotification("~g~[Info]~w~ GA-Chat wird nun ausgeblendet.");
player.SendNotification("Du hast den /ga-Chat ~r~deaktiviert~s~.");
}
else
{
player.SetData("togga", true);
player.SendNotification("~g~[Info]~w~ GA-Chat wird nun angezeigt.");
player.SendNotification("Du hast den /ga-Chat ~g~aktiviert~s~.");
}
break;
case "all":
@@ -270,7 +270,7 @@ namespace ReallifeGamemode.Server.Commands
player.SetData("togga", true);
player.SetData("togall", true);
player.SendNotification("~g~[Info]~s~ Alle Logs wurden eingeschaltet");
player.SendNotification("Du hast alle Benachrichtigungen ~g~aktiviert~s~.");
}
else
{
@@ -283,7 +283,7 @@ namespace ReallifeGamemode.Server.Commands
player.ResetData("togga");
player.ResetData("togall");
player.SendNotification("~g~[Info]~s~ Alle Logs wurden ausgeschaltet");
player.SendNotification("Du hast alle Benachrichtigungen ~r~deaktiviert~s~.");
}
break;
}