In Minecraft 1.9, the defaultgamemode command is(AFAIK) intended to set the gamemode of new players on the server. Instead, this happens on all users, whether or not they have logged into the server before. Sorry if this is intended behavior, but so far I have not found a workaround.
the enviroment is only supposed to contain pc details