Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Commit

Permalink
1.13 compatibility
Browse files Browse the repository at this point in the history
stupid 1.13 server
  • Loading branch information
kafuuchino-desu authored Nov 9, 2018
1 parent 52d54e8 commit 50327b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion serverinfoparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ def parse(line):
result.hour = line[1:3]
result.min = line[4:6]
result.sec = line[7:9]
result.sourceProcess = re.search(r'[[](.*?)[]]', line[11:]).group()[1:-1]
try:
result.sourceProcess = re.search(r'[[](.*?)[]]', line[11:]).group()[1:-1]
except:
pass
if (result.sourceProcess == 'Server thread/INFO') and (line[33:].startswith('<')):
player = re.search(r'[<](.*?)[>]', line[33:]).group()[1:-1]
if player != '':
Expand Down

0 comments on commit 50327b1

Please sign in to comment.