add tog ip, deathlogs,lc
This commit is contained in:
@@ -208,6 +208,57 @@ namespace ReallifeGamemode.Server.Commands
|
||||
|
||||
#region Support
|
||||
|
||||
[Command("tog", "~m~Benutzung: ~s~/tog [Typ = ~g~ip~s~, ~g~deathlogs~s~,~g~lc~s~", GreedyArg = true)]
|
||||
public void CmdTog(Player player, string typ, string option1 = null, string option2 = null)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
||||
{
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (typ.ToLower())
|
||||
{
|
||||
case "ip":
|
||||
if(player.HasData("togip"))
|
||||
{
|
||||
player.SetData("togip", false);
|
||||
player.SendNotification("~g~[Info]~w~ Ip´s werden nun ausgeblendet.");
|
||||
}
|
||||
else
|
||||
{
|
||||
player.SetData("togip", true);
|
||||
player.SendNotification("~g~[Info]~w~ Ip´s werden nun angezeigt.");
|
||||
}
|
||||
break;
|
||||
|
||||
case "deathlogs":
|
||||
if (player.HasData("togdeath"))
|
||||
{
|
||||
player.SetData("togdeath", false);
|
||||
player.SendNotification("~g~[Info]~w~ Deathlogs werden nun ausgeblendet.");
|
||||
}
|
||||
else
|
||||
{
|
||||
player.SetData("togdeath", true);
|
||||
player.SendNotification("~g~[Info]~w~ Deathlogs werden nun angezeigt.");
|
||||
}
|
||||
break;
|
||||
case "lc":
|
||||
if (player.HasData("toglc"))
|
||||
{
|
||||
player.SetData("toglc", false);
|
||||
player.SendNotification("~g~[Info]~w~ Leaderchat wird nun ausgeblendet.");
|
||||
}
|
||||
else
|
||||
{
|
||||
player.SetData("toglc", true);
|
||||
player.SendNotification("~g~[Info]~w~ Leaderchat wird nun angezeigt.");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
[Command("tsupport", "~m~Benutzung: ~s~/tsupport", Alias = "ts")]
|
||||
public void CmdAdminTSupport(Player player)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user