Skip to content

Commit

Permalink
Merge pull request #171 from ACaiCat/master
Browse files Browse the repository at this point in the history
更新:CaiBot获取世界名称
  • Loading branch information
ACaiCat authored Jun 7, 2024
2 parents 2be82e5 + a05a163 commit 17dac31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CaiBot/MessageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ public static async Task HandleMessageAsync(string receivedData)
{ "plugin_version",Plugin.VersionNum},
{ "terraria_version", Main.versionNumber},
{ "cai_whitelist", Config.config.WhiteList},
{ "os",RuntimeInformation.RuntimeIdentifier }

{ "os",RuntimeInformation.RuntimeIdentifier },
{"world", (TShock.Config.Settings.UseServerName ? TShock.Config.Settings.ServerName : Main.worldName)}

};
await SendDateAsync(serverInfo.ToJson());
break;
Expand Down
2 changes: 1 addition & 1 deletion CaiBot/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Plugin : TerrariaPlugin
public override string Name => "CaiBotPlugin";

//插件的版本
public static readonly Version VersionNum = new Version(2024, 6, 7, 0); //日期+版本号(0,1,2...)
public static readonly Version VersionNum = new Version(2024, 6, 7, 1); //日期+版本号(0,1,2...)
public override Version Version
{
get { return VersionNum; }
Expand Down

0 comments on commit 17dac31

Please sign in to comment.