Extractioncraft 註冊了以下根指令:
子指令透過 MagmaCore 指令管理器在執行時註冊。
管理員指令
| 指令 | 權限 | 預設 | 發送者 | 說明 |
|---|
/exc initialize | extractioncraft.initialize | op | 玩家 | 開啟首次設定選單 |
/exc setup | extractioncraft.setup | op | 玩家 | 開啟內容包瀏覽器,用於安裝、解除安裝和管理內容 |
/exc protection bypass | extractioncraft.protection.bypass | op | 玩家 | 切換繞過比賽實例保護(例如傳送限制、方塊保護) |
/exc reload | extractioncraft.* | op | 任意 | 重新載入外掛程式。如果重新載入未完全套用,建議完全重啟伺服器。 |
玩家指令
| 指令 | 權限 | 預設 | 發送者 | 說明 |
|---|
/exc createMatch <contentPackage.yml> | extractioncraft.creatematch | true | 玩家 | 使用指定的內容包建立新比賽並將玩家放入。Tab 自動補全可用的內容包檔案名稱。 |
/exc start | extractioncraft.start | true | 玩家 | 在滿足最低玩家數量的情況下,啟動玩家目前所在的比賽 |
/exc leave | (未設定) | true | 玩家 | 離開目前的比賽。 |
/exc quit | (未設定) | true | 玩家 | 離開目前的比賽。與 /exc leave 相同。 |
其他指令
| 指令 | 權限 | 預設 | 說明 |
|---|
/logify | logify.* | op | 將目前的 latest.log 張貼到 mclo.gs,方便管理員回報錯誤 |
權限摘要
| 權限 | 預設 | 說明 |
|---|
extractioncraft.initialize | op | 存取 /exc initialize |
extractioncraft.setup | op | 存取 /exc setup |
extractioncraft.protection.bypass | op | 存取 /exc protection bypass |
extractioncraft.* | op | 存取 /exc reload |
extractioncraft.creatematch | true | 存取 /exc createMatch |
extractioncraft.start | true | 存取 /exc start |
extractioncraft.leave | true | 在 plugin.yml 中為 /exc leave 宣告,但執行時並未強制執行(該指令沒有權限檢查) |
logify.* | op | 存取 /logify |
注意事項
plugin.yml 宣告了根指令 /extractioncraft 和 /logify。所有子指令都在執行時註冊。
quit 和 leave 子指令都會將玩家從目前的比賽中移除。它們都透過 QuitMatchCommand 註冊。注意:原始碼中存在 ExitMatchCommand 類別,但它在啟動時並未被註冊。