Package zombie.network
Class ServerSettings
java.lang.Object
zombie.network.ServerSettings
public class ServerSettings
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
protected SandboxOptions
sandboxOptions
protected ServerOptions
serverOptions
protected java.util.ArrayList
spawnPoints
protected java.util.ArrayList
spawnRegions
-
Constructor Summary
Constructors Constructor Description ServerSettings(java.lang.String name)
-
Method Summary
Modifier and Type Method Description void
addSpawnRegion(java.lang.String name, java.lang.String file)
void
clearSpawnRegions()
boolean
deleteFiles()
boolean
duplicateFiles(java.lang.String newName)
java.lang.String
getName()
int
getNumSpawnRegions()
SandboxOptions
getSandboxOptions()
ServerOptions
getServerOptions()
java.lang.String
getSpawnRegionFile(int index)
java.lang.String
getSpawnRegionName(int index)
boolean
loadFiles()
KahluaTable
loadSpawnPointsFile(java.lang.String file)
void
removeSpawnRegion(int index)
boolean
rename(java.lang.String newName)
void
resetToDefault()
boolean
saveFiles()
boolean
saveSpawnPointsFile(java.lang.String file, KahluaTable professionsTable)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
name
protected java.lang.String name -
serverOptions
-
sandboxOptions
-
spawnRegions
protected java.util.ArrayList spawnRegions -
spawnPoints
protected java.util.ArrayList spawnPoints
-
-
Constructor Details
-
ServerSettings
public ServerSettings(java.lang.String name)
-
-
Method Details
-
getName
public java.lang.String getName() -
resetToDefault
public void resetToDefault() -
loadFiles
public boolean loadFiles() -
saveFiles
public boolean saveFiles() -
deleteFiles
public boolean deleteFiles() -
duplicateFiles
public boolean duplicateFiles(java.lang.String newName) -
rename
public boolean rename(java.lang.String newName) -
getServerOptions
-
getSandboxOptions
-
getNumSpawnRegions
public int getNumSpawnRegions() -
getSpawnRegionName
public java.lang.String getSpawnRegionName(int index) -
getSpawnRegionFile
public java.lang.String getSpawnRegionFile(int index) -
clearSpawnRegions
public void clearSpawnRegions() -
addSpawnRegion
public void addSpawnRegion(java.lang.String name, java.lang.String file) -
removeSpawnRegion
public void removeSpawnRegion(int index) -
loadSpawnPointsFile
-
saveSpawnPointsFile
-