Detect if multiplayer or singleplayer
Posted: Fri Sep 23, 2016 1:44 pm
Is there a way to read weather the game is a Multiplayer or a Singleplayer game? eg. Are there any server options one can read that are not set in singleplayer?
In specific, I want my mod to only give permission for changes to admins in Multiplayer. But there are cases where you load a singleplayer save from someone alse and you are not an admin. So I want to detect Singleplayer to react to this. Counting the players doesn't help, since there could be 1 player on a Multiplayer server as well.
In specific, I want my mod to only give permission for changes to admins in Multiplayer. But there are cases where you load a singleplayer save from someone alse and you are not an admin. So I want to detect Singleplayer to react to this. Counting the players doesn't help, since there could be 1 player on a Multiplayer server as well.