geforkt von Mirrors/Paper
Tameable#getOwnerUniqueId API
This is faster if all you need is the UUID, as .getOwner() will cause an OfflinePlayer to be loaded from disk.
Dieser Commit ist enthalten in:
Ursprung
794fc9799b
Commit
4b38f09815
@ -88,6 +88,10 @@ public abstract class CraftAbstractHorse extends CraftAnimals implements Abstrac
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getOwnerUniqueId() {
|
||||
return getOwnerUUID();
|
||||
}
|
||||
public UUID getOwnerUUID() {
|
||||
return this.getHandle().getOwnerUUID();
|
||||
}
|
||||
|
@ -17,6 +17,10 @@ public class CraftTameableAnimal extends CraftAnimals implements Tameable, Creat
|
||||
return (TamableAnimal) super.getHandle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getOwnerUniqueId() {
|
||||
return getOwnerUUID();
|
||||
}
|
||||
public UUID getOwnerUUID() {
|
||||
try {
|
||||
return this.getHandle().getOwnerUUID();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren