Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新:CaiBot获取世界名称 #171

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading