Does SpongeAPI 7/8 possible to get player's accessToken(session) from client connection?

I had read jd from: org.spongepowered.api.event.network, but didn’t found any methods can get player’s accessToken when join/login server.

I am sorry for my silly question, it won’t gonna happen.

No question is silly.

As for your question, im not aware that sponge exposes that sort of thing. If it were to be exposed it would be on the ConnectionEvent.Auth or ServerSideaConnectionEvent.Auth

Your best bet on getting it is though the uuid and connecting to the minecraft token api.

1 Like