/tsupport farbe richtig

This commit is contained in:
hydrant
2020-05-08 00:00:51 +02:00
parent b947dd8c8d
commit 1576f964b5

View File

@@ -238,7 +238,7 @@ namespace ReallifeGamemode.Server.Commands
#endregion #endregion
#region Support #region Support
[Command("tsupport", "~m~Benutzung: ~s~/tsupport", Alias = "ts")] [Command("tsupport", "~m~Benutzung: ~s~/tsupport", Alias = "ts")]
public void tsup(Player player) public void CmdAdminTSupport(Player player)
{ {
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
{ {
@@ -260,7 +260,7 @@ namespace ReallifeGamemode.Server.Commands
{ {
player.SetData("SAdminduty", false); player.SetData("SAdminduty", false);
ChatService.SendMessage(player, "!{#ee4d2e}** " + "Du befindest dich nicht mehr im T-Support"); ChatService.SendMessage(player, "!{#ee4d2e}** " + "Du befindest dich nicht mehr im T-Support");
}
using (var dbContext = new DatabaseContext()) using (var dbContext = new DatabaseContext())
{ {
User targetUser = player.GetUser(dbContext); User targetUser = player.GetUser(dbContext);
@@ -280,9 +280,11 @@ namespace ReallifeGamemode.Server.Commands
break; break;
} }
} }
}
} }
[Command("aduty", "~m~Benutzung: ~s~/aduty")] [Command("aduty", "~m~Benutzung: ~s~/aduty")]
public void CmdAduty(Player player) public void CmdAdminAduty(Player player)
{ {
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
{ {