Added a page to create a Minecraft server; added config module
This commit is contained in:
1 parent
13e730df7b
commit
8e80151331
7 files changed
+97
-4
No files matched your search
@@ -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