Fixed help message in mctools.py
This commit is contained in:
parent
8538d2a676
commit
9161fae6d6
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ from util import hook
|
||||||
|
|
||||||
@hook.command
|
@hook.command
|
||||||
def mcping(inp):
|
def mcping(inp):
|
||||||
".mcping server[:port] - Ping a Minecraft server to check status."
|
".mcping <server>[:port] - Ping a Minecraft server to check status."
|
||||||
inp = inp.strip().split(" ")[0]
|
inp = inp.strip().split(" ")[0]
|
||||||
|
|
||||||
if ":" in inp:
|
if ":" in inp:
|
||||||
|
@ -70,7 +70,7 @@ def mcping(inp):
|
||||||
try:
|
try:
|
||||||
port = int(port)
|
port = int(port)
|
||||||
except:
|
except:
|
||||||
return "Invalid port!"
|
return "error: invalid port!"
|
||||||
else:
|
else:
|
||||||
host = inp
|
host = inp
|
||||||
port = 25565
|
port = 25565
|
||||||
|
|
Reference in a new issue