Server ignores gamemode after world gen
What I expected to happen?
When changing the gamemode property, new players would join with that gamemode.
What actually happens?
Players join with the gamemode set at world generation regardless of changes to server.properties afterwards and in contradiction to the gamemode displayed in the console.
Steps to reproduce
- Create a new BDS Server with default server.properties file
- Start the server, wait for it to finish initial start, and stop the server gracefully
- Change the gamemode value to creative
- Start the BDS instance again
- Connect with a Minecraft client and note that your gamemode is survival despite the default level being changed to creative.
Environment
Windows 10 client, Ubuntu server
Linked Issues
Comments6
History11
Changed summary:
Changed description:
What I expected to happen?
When changing the gamemode, new players would join with those permissions
What actually happens?
Steps to reproduce
- 0
- Create a new BDS Server with default server.properties file
- Start the server, wait for it to finish initial start, and stop the server gracefully
- Change the default-player-permission-level value to visitor
- Start the BDS instance again
- Connect with a Minecraft client and note that your permissions are set to member despite the default level being changed to visitor.
Server version: 1.14.60.5 running on Ubuntu 20.04 LTS (GNU/Linux 5.4.0-29-generic x86_64)
0Client version: Windows 10 (latest? I don't know how to check minecraft client version)
0server.properties has two changes from the default:
0- 0
- gamemode=creative 0
- allow-cheats=true 0
screen -r $SERVERNAME:
0 NO LOG FILE! - setting up server logging...
0[2020-05-09 04:00:55 INFO] Starting Server
0[2020-05-09 04:00:55 INFO] Version 1.14.60.5
0[2020-05-09 04:00:55 INFO] Session ID df239b72-f63e-483c-8610-0af9f28695e2
0[2020-05-09 04:00:55 INFO] Level Name: Bedrock level
0[2020-05-09 04:00:55 INFO] Game mode: 1 Creative
0[2020-05-09 04:00:55 INFO] Difficulty: 1 EASY
0[2020-05-09 04:00:56 INFO] opening worlds/Bedrock level/db
0[2020-05-09 04:01:05 INFO] IPv4 supported, port: .....
0[2020-05-09 04:01:05 INFO] IPv6 supported, port: .....
0[2020-05-09 04:01:05 INFO] IPv4 supported, port: ....
0[2020-05-09 04:01:05 INFO] IPv6 supported, port: ....
0[2020-05-09 04:01:11 INFO] Server started.
0[2020-05-09 18:19:19 INFO] Player connected: $PLAYERNAME, xuid: ....
0[2020-05-09 18:21:35 INFO] Player disconnected: $PLAYERNAME, xuid: ....
0
When $PLAYERNAME actually logs in, he sees survival mode. I don't remember if the server was set to the default survival mode the first time he logged in for testing if the mode is somehow sticky per user.
Changed description:
What I expected to happen?
0When changing the gamemode, new players would join with those permissions
0What actually happens?
0Players join with the default-player-permission-level set at world generation regardless of changes to server.properties afterwards.
Steps to reproduce
0- 0
- Create a new BDS Server with default server.properties file 0
- Start the server, wait for it to finish initial start, and stop the server gracefully 0
- Change the default-player-permission-level value to visitor 0
- Start the BDS instance again 0
- Connect with a Minecraft client and note that your permissions are set to member despite the default level being changed to visitor. 0
Server version: 1.14.60.5 running on Ubuntu 20.04 LTS (GNU/Linux 5.4.0-29-generic x86_64)
0Client version: Windows 10 (latest? I don't know how to check minecraft client version)
0server.properties has two changes from the default:
0- 0
- gamemode=creative 0
- allow-cheats=true 0
screen -r $SERVERNAME:
0 NO LOG FILE! - setting up server logging...
0[2020-05-09 04:00:55 INFO] Starting Server
0[2020-05-09 04:00:55 INFO] Version 1.14.60.5
0[2020-05-09 04:00:55 INFO] Session ID df239b72-f63e-483c-8610-0af9f28695e2
0[2020-05-09 04:00:55 INFO] Level Name: Bedrock level
0[2020-05-09 04:00:55 INFO] Game mode: 1 Creative
0[2020-05-09 04:00:55 INFO] Difficulty: 1 EASY
0[2020-05-09 04:00:56 INFO] opening worlds/Bedrock level/db
0[2020-05-09 04:01:05 INFO] IPv4 supported, port: .....
0[2020-05-09 04:01:05 INFO] IPv6 supported, port: .....
0[2020-05-09 04:01:05 INFO] IPv4 supported, port: ....
0[2020-05-09 04:01:05 INFO] IPv6 supported, port: ....
0[2020-05-09 04:01:11 INFO] Server started.
0[2020-05-09 18:19:19 INFO] Player connected: $PLAYERNAME, xuid: ....
0[2020-05-09 18:21:35 INFO] Player disconnected: $PLAYERNAME, xuid: ....
0
When $PLAYERNAME actually logs in, he sees survival mode. I don't remember if the server was set to the default survival mode the first time he logged in for testing if the mode is somehow sticky per user.
Changed description:
Server version: 1.14.60.5 running on Ubuntu 20.04 LTS (GNU/Linux 5.4.0-29-generic x86_64)
0server.properties has two changes from the default:
0- 0
- gamemode=creative 0
- allow-cheats=true 0
screen -r $SERVERNAME:
0 NO LOG FILE! - setting up server logging...
0[2020-05-09 04:00:55 INFO] Starting Server
0[2020-05-09 04:00:55 INFO] Version 1.14.60.5
0[2020-05-09 04:00:55 INFO] Session ID df239b72-f63e-483c-8610-0af9f28695e2
0[2020-05-09 04:00:55 INFO] Level Name: Bedrock level
0[2020-05-09 04:00:55 INFO] Game mode: 1 Creative
0[2020-05-09 04:00:55 INFO] Difficulty: 1 EASY
0[2020-05-09 04:00:56 INFO] opening worlds/Bedrock level/db
0[2020-05-09 04:01:05 INFO] IPv4 supported, port: .....
0[2020-05-09 04:01:05 INFO] IPv6 supported, port: .....
0[2020-05-09 04:01:05 INFO] IPv4 supported, port: ....
0[2020-05-09 04:01:05 INFO] IPv6 supported, port: ....
0[2020-05-09 04:01:11 INFO] Server started.
0[2020-05-09 18:19:19 INFO] Player connected: $PLAYERNAME, xuid: ....
0[2020-05-09 18:21:35 INFO] Player disconnected: $PLAYERNAME, xuid: ....
0
When $PLAYERNAME actually logs in, he sees survival mode. I don't remember if the server was set to the default survival mode the first time he logged in for testing if the mode is somehow sticky per user.
What I expected to happen?
00What actually happens?
Players join with the gamemode set at world generation regardless of changes to server.properties afterwards and in contradiction to the gamemode displayed in the console.
Step s to reproduce
- 0
- Create a new BDS Server with default server.properties file
- Start the server, wait for it to finish initial start, and stop the server gracefully
- Change the gamemode value to creative has two changes from the default: 0
- Start the BDS instance again
- Connect with a Minecraft client and note that your gamemode is survival despite the default level being changed to creative.
Added relates to link: BDS-271Server ignores default-player-permission after world genFixed
Confirmation Status: Unconfirmed → Confirmed
Added is duplicated by link: BDS-7685Server loads gamemode property but game is always set to survivalDuplicate
Added affects versions: 1.16.10
Resolution: Unresolved → Fixed
The server reads certain values once on creation. I believe there is an existing report for this but dont have the time to search right now.
As a workaround you can change that player to creative using console commands.
MEQS_DUPE
IonicEcko: Sounds good. If I fix that user, will all new users be creative? Or if I want a creative server, I should redo the install?
I think I understand better now. When the user first logs in, the client sets a bunch of properties for the user based on the server.properties. So future users will see "creative" and be okay. If what I'm saying is not wrong, this ticket should be closed and possibly marked as "solved by" the existing report you refer to. Thanks!
Have updated the report and confirmed it.
this appears to have been resolved in 1.19.2