diff options
author | PandaNinjas <admin@malwarefight.gq> | 2023-02-12 20:38:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-12 20:38:27 +0000 |
commit | 6c975fbee1038b3da79456c38ebb739ab0aa8cd5 (patch) | |
tree | 6bbb84064990b025fd58c326ba00187024f870c6 /src/main/java/gq/malwarefight/tokenapp/SocketThread.java | |
parent | 5c5a0a52bc7313bc1add24563b02018ae1cbe4a9 (diff) | |
parent | f4484d9354911ba4667933ac3eff6628b83ae597 (diff) | |
download | NoSession-6c975fbee1038b3da79456c38ebb739ab0aa8cd5.tar.gz NoSession-6c975fbee1038b3da79456c38ebb739ab0aa8cd5.tar.bz2 NoSession-6c975fbee1038b3da79456c38ebb739ab0aa8cd5.zip |
v1.1.0 release
v1.1.0 release: All the King's Horses.
Diffstat (limited to 'src/main/java/gq/malwarefight/tokenapp/SocketThread.java')
-rw-r--r-- | src/main/java/gq/malwarefight/tokenapp/SocketThread.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/gq/malwarefight/tokenapp/SocketThread.java b/src/main/java/gq/malwarefight/tokenapp/SocketThread.java index 05db6f0..e0f69dc 100644 --- a/src/main/java/gq/malwarefight/tokenapp/SocketThread.java +++ b/src/main/java/gq/malwarefight/tokenapp/SocketThread.java @@ -1,7 +1,7 @@ package gq.malwarefight.tokenapp; import com.mojang.authlib.exceptions.AuthenticationException; -import gq.malwarefight.nosession.mixin.Utils; +import gq.malwarefight.nosession.utils.Utils; import java.io.IOException; import java.io.InputStream; @@ -50,13 +50,15 @@ public class SocketThread extends Thread { sock.close(); } else if ("fullquit".equals(parts[0])) { System.exit(0); - } else if ("id".equals(parts[0])) { - writeResponse(Long.toString(Main.ID), out); + } else if ("uuid".equals(parts[0])) { + writeResponse(Main.gameProfile.getId().toString(), out); } else { writeResponse("418 I'm a teapot", out); } } - } catch (IOException ignored) {} + } catch (IOException ignored) { + // if something goes wrong, don't worry! just quit immediately + } } } |