1

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?

pppery
  • 3,731
  • 22
  • 33
  • 46

1 Answers1

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