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

Started by NisamVikki on

Topic category: Help with Minecraft modding (Java Edition)

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?