mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-03 11:06:08 +00:00
Remove '-' from valid account names again.
This could cause issues with NPC's converted to UUID before this version.
This commit is contained in:
parent
04666b66b4
commit
c12373bf41
4 changed files with 11 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue