From ebc75989830c3edf782a04063fae8efae9faf4d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=A7=E6=9D=B0=20=E6=9B=BE?= <1433703011@qq.com> Date: Tue, 16 Aug 2022 15:41:42 +0800 Subject: [PATCH] Change code location --- CDK/CDKCommand.cs | 3 +++ CDK/DatabaseManager.cs | 1 - CDK/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CDK/CDKCommand.cs b/CDK/CDKCommand.cs index b69142d..0dafe1c 100644 --- a/CDK/CDKCommand.cs +++ b/CDK/CDKCommand.cs @@ -53,6 +53,9 @@ public void Execute(IRocketPlayer caller,string[] args) case DatabaseManager.RedeemCDKResult.PlayerNotMatch: UnturnedChat.Say(caller, Main.Instance.Translate("player_not_match"), UnityEngine.Color.red); break; + case DatabaseManager.RedeemCDKResult.KeyNotValid: + UnturnedChat.Say(caller, Main.Instance.Translate("cdk_config_error"), UnityEngine.Color.red); + break; } } else diff --git a/CDK/DatabaseManager.cs b/CDK/DatabaseManager.cs index a789185..f59d7c9 100644 --- a/CDK/DatabaseManager.cs +++ b/CDK/DatabaseManager.cs @@ -80,7 +80,6 @@ public RedeemCDKResult RedeemCDK(UnturnedPlayer player, string CDK) { if (!KeyVailed(cdkdata)) { - UnturnedChat.Say(player, Main.Instance.Translate("cdk_config_error"), UnityEngine.Color.red); return RedeemCDKResult.KeyNotValid; } else diff --git a/CDK/Properties/AssemblyInfo.cs b/CDK/Properties/AssemblyInfo.cs index e34e77c..7557197 100644 --- a/CDK/Properties/AssemblyInfo.cs +++ b/CDK/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //通过使用 "*",如下所示: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("3.2.2.0")] -[assembly: AssemblyFileVersion("3.2.2.0")] +[assembly: AssemblyVersion("3.2.2.1")] +[assembly: AssemblyFileVersion("3.2.2.1")]