Interface ArenaConfig
-
public interface ArenaConfig
用於被使用者實作來註冊場地機制運作
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableMap<String,Integer>getAllowWarps()獲得可設置的地標名稱和最大設置數FilegetArenaFolder()StringgetFallBackServer()當遊戲結束後自動回傳的伺服器StringgetGamePrefix()LocationgetLobbyLocation()intgetMaxLoadArena()voidsetExtraWorldSetting(World world)CompletableFuture<Boolean>setLobbyLocation(Location location)如何儲存等候房間位置到你的 yaml
-
-
-
Method Detail
-
getArenaFolder
File getArenaFolder()
- Returns:
- 場地裝載資料夾
-
getMaxLoadArena
int getMaxLoadArena()
- Returns:
- 最大場地加載數(等待中時)
-
setExtraWorldSetting
void setExtraWorldSetting(@Nonnull World world)
- Parameters:
world- 世界設置
-
getAllowWarps
ImmutableMap<String,Integer> getAllowWarps()
獲得可設置的地標名稱和最大設置數String 是地標名稱, Integer 是該地標最大設置數
- Returns:
- 允許的地標
-
getLobbyLocation
Location getLobbyLocation()
- Returns:
- 等候房間位置
-
getFallBackServer
String getFallBackServer()
當遊戲結束後自動回傳的伺服器- Returns:
- 返回伺服器的名稱
-
getGamePrefix
String getGamePrefix()
- Returns:
- 此小遊戲的前綴
-
setLobbyLocation
CompletableFuture<Boolean> setLobbyLocation(Location location)
如何儲存等候房間位置到你的 yaml- Parameters:
location- 等候房間位置- Returns:
- 設置是否成功
-
-