-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Plugins zh HK
ASF includes support for custom plugins that can be loaded during runtime. 外掛程式允許您通過添加自訂命令、自訂交易邏輯或與第三方工具和 API的整體集成自訂ASF行為。
This page describes ASF plugins from users perspective - explanation, usage and likewise. If you want to view developer's perspective, move here instead.
ASF從位於ASF資料夾中的plugins目錄中載入外掛程式。 It's a recommended practice (which becomes mandatory with plugin auto-updates) to maintain a dedicated directory for each plugin that you want to use, which can be based off its name, such as MyPlugin. 這樣做將生成 plugins/MyPlugin 的最終樹結構。 最後,外掛程式的所有二進位檔案都應該放在那個專用資料夾裏,ASF 會在重新開機後成功偵測並使用您的外掛程式。
Usually plugin developers will publish their plugins in form of a zip file with binaries inside, which means that you should unpack that zip file to its own dedicated subdirectory inside plugins directory.
如果外掛程式已成功載入,您將在日誌中看到它的名稱和版本。 在遇到與您決定使用的外掛程式相關的錯誤或用法問題時,您應該諮詢相關外掛程式開發人員。
您可以在我們的**第三方工具**部分找到一些特色外掛程式。
Please note that ASF plugins could be malicious. You should always ensure that you're using plugins made by developers that you can trust, even those from the third-party section above. 如果您決定使用任何自訂外掛程式,ASF 開發人員將無法再保證您通常的 ASF 優勢(如絕無惡意軟件或避免VAC)。 You need to understand that plugins have full control over ASF process once loaded, due to that we're also unable to support setups that utilize custom plugins, since you're no longer running vanilla ASF code.
Depending on plugin's complexity, scope and a lot of other factors, it's entirely possible that it'll require from you to use generic ASF variant, instead of usually recommended OS-specific. This is because OS-specific variant comes only with core functionality required for ASF itself, and your plugin may require parts that fall outside of main ASF scope, in result being incompatible with trimmed OS-specific builds.
In general, when using third-party plugins, we recommend using ASF generic variant for maximum compatibility. However, not all plugins may require it - please refer to your plugin's information in order to find out whether you need to use generic ASF variant or not.
ASF has built-in mechanism for plugins auto-updates. For that feature to work, first of all, your plugin of choice needs to support that mechanism. If you've loaded a plugin that supports auto-updates, ASF will state it in the log appropriately during plugin initialization, such as "plugin has been disabled from automatic updates" or "plugin has been registered and enabled for automatic updates".
By default, automatic updates for custom plugins are disabled, due to security reasons. You can configure automatic updates in the config by using PluginsUpdateList and/or PluginsUpdateMode, we recommend to read description of those config properties for more info. It's also nice to note that, like with ASF updates, you can decide to keep automatic updates disabled, and then update on as-needed, manual basis, by issuing updateplugins command.
Both approaches allow you to update none, some, or all custom plugins that you've loaded into the process.
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
|---|---|---|---|
- 🏡 Home
- 💬 FAQ
- ⚙️ Setting up (start here)
- 👥 後台序號啟動器
- 📢 Commands
- 🛠️ Compatibility
- 🔧 Configuration
- 🎴 ItemsMatcherPlugin
- 📋 Management
- ⏱️ 性能
- 📡 Remote communication
- 👪 Steam 親友同享
- 🔄 交易







