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 string)
-
Method Summary
Modifier and Type Method Description void
addSpawnRegion(java.lang.String string, java.lang.String string2)
void
clearSpawnRegions()
boolean
deleteFiles()
boolean
duplicateFiles(java.lang.String string)
java.lang.String
getName()
int
getNumSpawnRegions()
SandboxOptions
getSandboxOptions()
ServerOptions
getServerOptions()
java.lang.String
getSpawnRegionFile(int int1)
java.lang.String
getSpawnRegionName(int int1)
boolean
loadFiles()
KahluaTable
loadSpawnPointsFile(java.lang.String string)
void
removeSpawnRegion(int int1)
boolean
rename(java.lang.String string)
void
resetToDefault()
boolean
saveFiles()
boolean
saveSpawnPointsFile(java.lang.String string, KahluaTable kahluaTable)
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 string)
-
-
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 string) -
rename
public boolean rename(java.lang.String string) -
getServerOptions
-
getSandboxOptions
-
getNumSpawnRegions
public int getNumSpawnRegions() -
getSpawnRegionName
public java.lang.String getSpawnRegionName(int int1) -
getSpawnRegionFile
public java.lang.String getSpawnRegionFile(int int1) -
clearSpawnRegions
public void clearSpawnRegions() -
addSpawnRegion
public void addSpawnRegion(java.lang.String string, java.lang.String string2) -
removeSpawnRegion
public void removeSpawnRegion(int int1) -
loadSpawnPointsFile
-
saveSpawnPointsFile
-