mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-28 10:12:18 +01:00
Allow the deletion of broken homes
This commit is contained in:
parent
a5239ef601
commit
6224b07215
@ -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 New Issue
Block a user