mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Allow the deletion of broken homes
This commit is contained in:
parent
a5239ef601
commit
6224b07215
1 changed files with 6 additions and 1 deletions
|
@ -163,7 +163,12 @@ public abstract class UserData extends PlayerExtension implements IConf
|
|||
|
||||
public void delHome(String name) throws Exception
|
||||
{
|
||||
if (getHome(name) != null)
|
||||
String search = name;
|
||||
if (!homes.containsKey(search))
|
||||
{
|
||||
search = Util.sanitizeFileName(name);
|
||||
}
|
||||
if (homes.containsKey(search))
|
||||
{
|
||||
homes.remove(name);
|
||||
config.removeProperty("homes." + name);
|
||||
|
|
Loading…
Reference in a new issue