diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index c89cf85f..b0dc52e9 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -238,7 +238,7 @@ namespace ReallifeGamemode.Server.Commands #endregion #region Support [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) { @@ -260,29 +260,31 @@ namespace ReallifeGamemode.Server.Commands { player.SetData("SAdminduty", false); ChatService.SendMessage(player, "!{#ee4d2e}** " + "Du befindest dich nicht mehr im T-Support"); - } - using (var dbContext = new DatabaseContext()) - { - User targetUser = player.GetUser(dbContext); - switch (targetUser.FactionId) + + using (var dbContext = new DatabaseContext()) { - case null: - player.SetSharedData("blipColor", 0); - break; - case 8: - player.SetSharedData("blipColor", 83); - break; - case 7: - player.SetSharedData("blipColor", 52); - break; - case 4: - player.SetSharedData("blipColor", 5); - break; + User targetUser = player.GetUser(dbContext); + switch (targetUser.FactionId) + { + case null: + player.SetSharedData("blipColor", 0); + break; + case 8: + player.SetSharedData("blipColor", 83); + break; + case 7: + player.SetSharedData("blipColor", 52); + break; + case 4: + player.SetSharedData("blipColor", 5); + break; + } } + } } [Command("aduty", "~m~Benutzung: ~s~/aduty")] - public void CmdAduty(Player player) + public void CmdAdminAduty(Player player) { if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) {