ServerAPIv1.1.0

安裝Installation

  1. 下載 ServerAPI-1.1.0.jar 放進 plugins/
  2. 啟動伺服器,產生 plugins/ServerAPI/config.yml
  3. 確認 http.port,預設 8080 常與其他服務衝突
  4. 測試:curl http://localhost:8080/api/v1
第一次啟動需要連得上網路。資料庫驅動(HikariCP/JDBC/Jedis)由 Paper 的 PluginLoader 於首次啟動時自 Maven 下載,不打包在 jar 內。離線環境或防火牆擋住時插件會啟動失敗。
  1. Drop ServerAPI-1.1.0.jar into plugins/
  2. Start the server to generate plugins/ServerAPI/config.yml
  3. Check http.port — the default 8080 clashes with a lot of software
  4. 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.