mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 01:25:26 +02:00
Allow the deletion of broken homes
This commit is contained in:
@@ -163,7 +163,12 @@ public abstract class UserData extends PlayerExtension implements IConf
|
|||||||
|
|
||||||
public void delHome(String name) throws Exception
|
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);
|
homes.remove(name);
|
||||||
config.removeProperty("homes." + name);
|
config.removeProperty("homes." + name);
|
||||||
|
Reference in New Issue
Block a user