Player gamemode
#1
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?
Reply
Thanks given by:
#2
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
Reply
Thanks given by:
#3
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.
Reply
Thanks given by:
#4
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.
Reply
Thanks given by:
#5
Ach so!
I understood it wrong. This actually makes sense. And yes, we need another state for players, then, "inherit from world".
Reply
Thanks given by:
#6
HavenĀ“t thought about this issue. Now the gamemode is only saved, if it differs from the worlds gamemode.
Reply
Thanks given by:
#7
so when wil adventure mode be added? Smile
Reply
Thanks given by:




Users browsing this thread: 3 Guest(s)