Remove '-' from valid account names again.

This could cause issues with NPC's converted to UUID before this version.
This commit is contained in:
KHobbits 2014-05-05 22:36:16 +01:00
parent 04666b66b4
commit c12373bf41
4 changed files with 11 additions and 10 deletions

View file

@ -51,6 +51,7 @@ public class Economy
private static void createNPCFile(String name)
{
File folder = new File(ess.getDataFolder(), "userdata");
name = StringUtil.safeString(name);
if (!folder.exists())
{
folder.mkdirs();
@ -450,4 +451,3 @@ public class Economy
deleteNPC(name);
}
}