mc list up up up up

This commit is contained in:
SiHuan 2020-02-27 22:46:35 +08:00
parent d906ebacff
commit 3445caae9b

View file

@ -10,7 +10,7 @@ class Ans(StdAns):
AllowCmd = ['list'] AllowCmd = ['list']
if cmd in AllowCmd: if cmd in AllowCmd:
if cmd == 'list': if cmd == 'list':
output = getoutput('spigot status') output = getoutput('spigot command list')
p = re.compile(r'There are (.*?)[ of a max]', re.S) p = re.compile(r'There are (.*?)[ of a max]', re.S)
online = int(re.findall(p,output)[0]) online = int(re.findall(p,output)[0])
if online == 0: if online == 0: