aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gq/malwarefight/tokenapp/SocketThread.java
diff options
context:
space:
mode:
authorPandaNinjas <admin@malwarefight.gq>2023-02-12 20:38:27 +0000
committerGitHub <noreply@github.com>2023-02-12 20:38:27 +0000
commit6c975fbee1038b3da79456c38ebb739ab0aa8cd5 (patch)
tree6bbb84064990b025fd58c326ba00187024f870c6 /src/main/java/gq/malwarefight/tokenapp/SocketThread.java
parent5c5a0a52bc7313bc1add24563b02018ae1cbe4a9 (diff)
parentf4484d9354911ba4667933ac3eff6628b83ae597 (diff)
downloadNoSession-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.java10
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
+ }
}
}