aboutsummaryrefslogtreecommitdiff
path: root/mcwrapper
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-11-07 16:03:52 +0100
committerKarel Kočí <cynerd@email.cz>2015-11-07 16:03:52 +0100
commit9e2636ae5da397ea69d521f2b2036cee3e428754 (patch)
treee06b91369e162fd2e8fbab8960cfe4512294cfb5 /mcwrapper
parenta3fb3236cdb6b8c9359f0706e00c8f2e9cb1b467 (diff)
downloadmcserver-wrapper-9e2636ae5da397ea69d521f2b2036cee3e428754.tar.gz
mcserver-wrapper-9e2636ae5da397ea69d521f2b2036cee3e428754.tar.bz2
mcserver-wrapper-9e2636ae5da397ea69d521f2b2036cee3e428754.zip
Update README.md
Also server configuration variable folder renamed to more precise directory.
Diffstat (limited to 'mcwrapper')
-rwxr-xr-xmcwrapper11
1 files changed, 6 insertions, 5 deletions
diff --git a/mcwrapper b/mcwrapper
index 5235a8e..dd6faee 100755
--- a/mcwrapper
+++ b/mcwrapper
@@ -181,9 +181,9 @@ def mcexec():
if type(conf.command) != str:
conf.command = ' '.join(conf.command)
if conf.verbose_level >= 1:
- print("Folder: " + conf.folder)
+ print("Folder: " + conf.directory)
print("Start command: " + conf.command)
- os.chdir(conf.folder)
+ os.chdir(conf.directory)
prc = subprocess.Popen(conf.command, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
inputThread = __InputThread__(prc.stdin)
@@ -204,7 +204,8 @@ def __signal_term__(_signo, _stack_frame):
def print_help():
print('mcwrapper [arguments...] ACTION ...')
- print(' This script is executing Minecraft server and reads its output.')
+ print(' This script is executing Minecraft server and reads its output. From output is')
+ print(' extracted server status and list of online players.')
print('')
print(' arguments')
print(' -h, --help')
@@ -288,9 +289,9 @@ if __name__ == '__main__':
sys.exit('Error: No configuration associated with identifier: ' + conf.identifier)
# Set configurations for server
try:
- conf.folder
+ conf.directory
except AttributeError:
- sys.exit('Missing "folder" config')
+ sys.exit('Missing "directory" config')
try:
conf.command
except AttributeError: