It might be a bad idea to use names as file names because it would contain characters that are not allowed as file names. (I don't know the minecraft naming rules, so I am not sure.)
And like Karim said, you should not store the names of players, but their UUID.

Could you post your entire main class so we can check what goes wrong exactly?