How to get the server address if a player is connected/joining one?

Started by NisamVikki on

Topic category: Help with modding (Java Edition)

Last seen on 21:35, 26. Dec 2022
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get the server address if a player is connected/joining one?

Hello, as you've seen from the title I'd like to get the server address (if possible) the client/player is currently connected to. And to also see if the player is playing singleplayer or multiplayer. How would I do this?