Fix conflict with GameMode Inventories.

Moving GameMode switching to before storing the player data means GMI can save the inventory before it is cleared, and prevents eventual inventory loss after MobArena restores it back.

Some more information can be found here: http://dev.bukkit.org/bukkit-plugins/gamemodeinventories/?comment=199