06-27-2013, 06:53 PM
I did it
, now gamemode changes.
The correct code is the latest I posted. What I did wrong was that all worlds had gamemode set to 1 (the default) so gamemode don't changed.
Now I need to clear inventory when a player changes from a survival world to a creative world

The correct code is the latest I posted. What I did wrong was that all worlds had gamemode set to 1 (the default) so gamemode don't changed.
Now I need to clear inventory when a player changes from a survival world to a creative world