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:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user