mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 11:37:30 +02:00
Cleanup getHome(s)
This commit is contained in:
@@ -556,13 +556,7 @@ public class User extends UserBase implements IUser
|
|||||||
{
|
{
|
||||||
// Ignore
|
// Ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<String> getHomes()
|
|
||||||
{
|
|
||||||
return super.getHomes();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(final IUser t)
|
public int compareTo(final IUser t)
|
||||||
@@ -772,9 +766,5 @@ public class User extends UserBase implements IUser
|
|||||||
this.setVanished(set);
|
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
|
try
|
||||||
{
|
{
|
||||||
return getData().getHomes().get(Util.sanitizeFileName(name)).getBukkitLocation();
|
return getData().getHomes().get(Util.sanitizeKey(name)).getBukkitLocation();
|
||||||
}
|
}
|
||||||
catch (WorldNotLoadedException ex)
|
catch (WorldNotLoadedException ex)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user