Translations:Modding:Server-Client Considerations/8/en

From Vintage Story Wiki

Helpful Tips

  • In most cases, a mod can be designed to work on both singleplayer and multiplayer sessions with no special logic needed. However, if you need to check the state of the session for some reason, you can use the ICoreClientAPI.IsSinglePlayer property to check if the current game is a singleplayer game.
  • If you have any doubts or concerns about your mod working on a multiplayer server, consider setting up a local server on your machine to test it out!