mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-12-01 22:53:28 +01:00
Fix timed disconnect.
This commit is contained in:
parent
88f2ebd73d
commit
eba4aa38d4
@ -187,14 +187,10 @@ class Player:
|
|||||||
|
|
||||||
print(f"Connected to server with: {self.auth_token.username}")
|
print(f"Connected to server with: {self.auth_token.username}")
|
||||||
|
|
||||||
count = 0
|
|
||||||
while True:
|
while True:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
count += 1
|
|
||||||
if self.kickout:
|
if self.kickout:
|
||||||
break
|
break
|
||||||
elif count == 50:
|
|
||||||
break
|
|
||||||
|
|
||||||
def Disconnect(self):
|
def Disconnect(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user