Added a page to create a Minecraft server; added config module
This commit is contained in:
@ -8,7 +8,9 @@ class Server {
|
||||
|
||||
// read version file
|
||||
var versionFilePath = this.rootDir + '/current_version.txt';
|
||||
this.version = fs.readFileSync(versionFilePath, {encoding:'utf8', flag:'r'});
|
||||
if (fs.existsSync(versionFilePath)) {
|
||||
this.version = fs.readFileSync(versionFilePath, {encoding:'utf8', flag:'r'});
|
||||
}
|
||||
|
||||
// set server state
|
||||
if (fs.existsSync(this.pidFilePath)) {
|
||||
|
Reference in New Issue
Block a user