Class ServerConfig

java.lang.Object
org.cloudburstmc.server.config.ServerConfig

public class ServerConfig extends Object
the universal public facing facade for the server's config so you dont have to care about where the config actually lies
  • Constructor Details

  • Method Details

    • getMotd

      public String getMotd()
    • getServerPort

      public int getServerPort()
    • getSubMotd

      public String getSubMotd()
    • getServerIp

      public String getServerIp()
    • getViewDistance

      public int getViewDistance()
    • isAchievements

      public boolean isAchievements()
    • isAnnouncePlayerAchievements

      public boolean isAnnouncePlayerAchievements()
    • getMaxPlayers

      public int getMaxPlayers()
    • isHardcore

      public boolean isHardcore()
    • isSpawnAnimals

      public boolean isSpawnAnimals()
    • isSpawnMobs

      public boolean isSpawnMobs()
    • isAllowFlight

      public boolean isAllowFlight()
    • setWhitelist

      public void setWhitelist(boolean b)
    • setDefaultLevel

      public void setDefaultLevel(String name)
    • getDefaultLevel

      public String getDefaultLevel()
    • isWhiteList

      public boolean isWhiteList()
    • getSpawnProtection

      public int getSpawnProtection()
    • isForceGamemode

      public boolean isForceGamemode()
    • isPVP

      public boolean isPVP()
    • isGenerateStructures

      public boolean isGenerateStructures()
    • isAllowNether

      public boolean isAllowNether()
    • isEnableQuery

      public boolean isEnableQuery()
    • isAutoSave

      public boolean isAutoSave()
    • isForceResources

      public boolean isForceResources()
    • isXboxAuth

      public boolean isXboxAuth()
    • getGamemode

      public org.cloudburstmc.api.player.GameMode getGamemode()
    • setGamemode

      public void setGamemode(org.cloudburstmc.api.player.GameMode gameMode)
    • getDifficulty

      public org.cloudburstmc.api.level.Difficulty getDifficulty()
    • setDifficulty

      public void setDifficulty(org.cloudburstmc.api.level.Difficulty difficulty)
    • getCommandAliases

      public Map<String,​List<String>> getCommandAliases()
    • getTimings

      public ServerConfig.Timings getTimings()
    • getSettings

      public ServerConfig.Settings getSettings()
    • getNetwork

      public ServerConfig.Network getNetwork()
    • getLevelSettings

      public ServerConfig.LevelSettings getLevelSettings()
    • getChunkSending

      public ServerConfig.ChunkSending getChunkSending()
    • getChunkTicking

      public ServerConfig.ChunkTicking getChunkTicking()
    • getChunkGeneration

      public ServerConfig.ChunkGeneration getChunkGeneration()
    • getPlayer

      public ServerConfig.Player getPlayer()
    • getWorlds

      public Map<String,​ServerConfig.World> getWorlds()
    • getSpawnLimits

      public ServerConfig.SpawnLimits getSpawnLimits()
    • getTicksPer

      public ServerConfig.TicksPer getTicksPer()
    • getDebug

      public ServerConfig.Debug getDebug()
    • getServerProperties

      public ServerProperties getServerProperties()
    • getCloudburstYaml

      public CloudburstYaml getCloudburstYaml()