Cuberite Forum
Player gamemode - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Player gamemode (/thread-514.html)



Player gamemode - xoft - 07-13-2012

I've noticed Lapayo touched some gamemode code, which brought an old question back to my mind. Why is there a per-player gamemode? Shouldn't gamemode be set per world, and only by the admins?

If I understand the current code, what we're trying to do is to change gamemode of the world to match the player's gamemode. So if a player with Creative mode happily flies around and another player logs in with Survival mode, the game suddenly changes to Survival and the first player dies by falling down? Doesn't seem right. Am I missing something here?


RE: Player gamemode - FakeTruth - 07-13-2012

That's not what I saw but I might have seen it wrong?

I think Lapayo made it so the player's gamemode is remembered so the player keeps the same gamemode he had before logging out, after logging inTongue

I didn't see anywhere that it sets all the player's gamemode to a specific one


RE: Player gamemode - xoft - 07-13-2012

I'm asking, why store gamemode with players *at all*? Players don't need gamemodes, they can't have different gamemodes in a single world, so it makes sense to have only a per-world gamemode.


RE: Player gamemode - FakeTruth - 07-13-2012

Of course they can have different game modes.. I do this all the time in my regular server.

Many people play survival but I, as admin, fly around invincibly in creative mode. There are more players that have been promoted and can play in creative (I'm not the only one), but the regular players are all in survival mode.

EDIT:
I DO think however, that player gamemode should ONLY be stored when it's different from the world's gamemode otherwise when you decide to change a world's gamemode to something else, all old players will stay in the old gamemode and only the new players will go to the new gamemode.
Maybe store gamemode as "default" in such case.


RE: Player gamemode - xoft - 07-13-2012

Ach so!
I understood it wrong. This actually makes sense. And yes, we need another state for players, then, "inherit from world".


RE: Player gamemode - Lapayo - 07-14-2012

HavenĀ“t thought about this issue. Now the gamemode is only saved, if it differs from the worlds gamemode.


RE: Player gamemode - NiLSPACE - 09-24-2012

so when wil adventure mode be added? Smile