Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make gamemode/difficulty settings persist between reboots #31

Open
nfitch opened this issue Nov 29, 2013 · 2 comments
Open

Make gamemode/difficulty settings persist between reboots #31

nfitch opened this issue Nov 29, 2013 · 2 comments

Comments

@nfitch
Copy link
Contributor

nfitch commented Nov 29, 2013

So if the gamemode and difficulty is changed while a server is up, the server.properties file isn't updated. It's an open question whether the gamemode/difficulty is persisted in the game files.

@nfitch
Copy link
Contributor Author

nfitch commented Nov 29, 2013

Doesn't persist to the server.properties file on shutdown.

@nfitch
Copy link
Contributor Author

nfitch commented Nov 30, 2013

So I spun up a server, set the default gamemode and set my own gamemode to creative. On server shutdown and reboot I went back to being in survival mode. So... we do need to have server properties editing for gamemode and difficulty. It will probably need to do this for setting the game mode:

  1. Set 'gamemode=[0-2]' in server.properties in manta and on the server
  2. Command 'defaultgamemode [0-2]' to the server.
  3. For each logged in player, command 'gamemode [0-2] [player]'
  4. Upload the server.properties (so that the ui reflects current state)

And for the difficulty:

  1. Set 'difficulty=[0-3]' in server.properties in manta and on the server
  2. Upload the server.properties (so that the ui reflects current state)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant