I'm wondering how to get Minecraft session id with Forge mod. Normally in Minecraft you use mc.session.getToken()
but in Forge it doesn't show up. Anyone knows how to do it?
Asked
Active
Viewed 1,495 times
1

pppery
- 3,731
- 22
- 33
- 46

user17121684
- 13
- 4
1 Answers
0
As shown in this post's answers: https://stackoverflow.com/questions/67506263/how-to-get-a-minecarft-session-id#:~:text=You%20can%20manually%20crash%20your,will%20be%20your%20session%20id.
The top answer shows:
Minecraft mc = Minecraft.getMinecraft();
mc.getSession().getToken();
Maybe this is a capitalization error?

Blue Robin
- 847
- 2
- 11
- 31
-
Answering questions by copying-and-pasting an answer from another question is counterproductive; flag the question as duplicate instead. – pppery Mar 17 '22 at 03:28
-
Oh, I see! Thanks @pppery – Blue Robin Mar 17 '22 at 23:46