1 (中文)软件包
肝帝熙恩 edited this page 2025-09-07 13:57:54 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

TShock 支持从 NuGet 存储库下载和安装插件。 这使得它能够自动下载插件以及插件所需的所有额外组件。 对于开发者来说,这使得分发插件变得更加容易。

此功能可通过通常用于运行服务器的 TShock.Server 可执行文件访问。

在 Linux 下:

./TShock.Server plugins

在 Windows 下cmd.exe

TShock.Server plugins

命令的文档包含在帮助功能中。 英文帮助输出的副本可在 packages-help.txt 中找到。 此文件主要用于记录 packages.json 的使用方法。

文件格式目前很简单,只包含一个对象,该对象包含一个 packages 键,其值是包 ID 到版本的映射。

下面显示了一个 packages.json 示例:

{
    "packages": {
        "Commandy.20.10.22.Test": "0.0.1"
    }
}

插件的名称作为键,版本作为值。