diff --git a/Refresh.Common/Helpers/HexHelper.cs b/Refresh.Common/Helpers/HexHelper.cs index 8a34e7b6..a77aedfd 100644 --- a/Refresh.Common/Helpers/HexHelper.cs +++ b/Refresh.Common/Helpers/HexHelper.cs @@ -32,7 +32,7 @@ public static string BytesToHexString(ReadOnlySpan data) [MethodImpl(MethodImplOptions.AggressiveOptimization)] public static byte[] HexStringToBytes(string hex) { if (hex.Length % 2 != 0) - throw new Exception("The hex string must have an even number of bytes"); + throw new FormatException("The hex string is invalid as it contains an odd number of bytes."); // Two hex digits per byte byte[] arr = new byte[hex.Length / 2]; diff --git a/Refresh.GameServer/Services/CommandService.cs b/Refresh.GameServer/Services/CommandService.cs index 63356c93..8680a6a0 100644 --- a/Refresh.GameServer/Services/CommandService.cs +++ b/Refresh.GameServer/Services/CommandService.cs @@ -115,12 +115,12 @@ public void HandleCommand(CommandInvocation command, GameDatabaseContext databas database.SetUnescapeXmlSequences(user, false); break; } - case "showmoddedcontent": + case "showmods": { database.SetShowModdedContent(user, true); break; } - case "hidemoddedcontent": + case "hidemods": { database.SetShowModdedContent(user, false); break;