1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-14 18:44:48 +02:00

Cleanup getHome(s)

This commit is contained in:
ementalo
2012-07-03 14:46:38 +01:00
parent a4dea20292
commit d78c4930c1
2 changed files with 3 additions and 13 deletions

View File

@@ -556,13 +556,7 @@ public class User extends UserBase implements IUser
{
// Ignore
}
}
@Override
public List<String> getHomes()
{
return super.getHomes();
}
}
@Override
public int compareTo(final IUser t)
@@ -772,9 +766,5 @@ public class User extends UserBase implements IUser
this.setVanished(set);
}
@Override
public Location getHome(String name) throws Exception
{
return super.getHome(name);
}
}

View File

@@ -417,7 +417,7 @@ public abstract class UserBase extends AsyncStorageObjectHolder<UserData> implem
}
try
{
return getData().getHomes().get(Util.sanitizeFileName(name)).getBukkitLocation();
return getData().getHomes().get(Util.sanitizeKey(name)).getBukkitLocation();
}
catch (WorldNotLoadedException ex)
{