安裝Installation
- 下載
ServerAPI-1.1.0.jar放進plugins/ - 啟動伺服器,產生
plugins/ServerAPI/config.yml - 確認
http.port,預設 8080 常與其他服務衝突 - 測試:
curl http://localhost:8080/api/v1
第一次啟動需要連得上網路。資料庫驅動(HikariCP/JDBC/Jedis)由 Paper 的
PluginLoader 於首次啟動時自 Maven 下載,不打包在 jar 內。離線環境或防火牆擋住時插件會啟動失敗。
- Drop
ServerAPI-1.1.0.jarintoplugins/ - Start the server to generate
plugins/ServerAPI/config.yml - Check
http.port— the default 8080 clashes with a lot of software - Test it:
curl http://localhost:8080/api/v1
The first launch needs internet access. The database drivers (HikariCP / JDBC / Jedis)
are downloaded from Maven by Paper's PluginLoader on first start rather than bundled in the jar.
The plugin fails to start if it is offline or blocked by a firewall.