geforkt von Mirrors/Paper
Fall back to name if skull has no uuid when getting player.
Dieser Commit ist enthalten in:
Ursprung
7f9fbe54ba
Commit
7ae605218b
@ -181,7 +181,17 @@ public class CraftSkull extends CraftBlockState implements Skull {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public OfflinePlayer getOwningPlayer() {
|
public OfflinePlayer getOwningPlayer() {
|
||||||
return hasOwner() ? Bukkit.getOfflinePlayer(profile.getId()) : null;
|
if (profile != null) {
|
||||||
|
if (profile.getId() != null) {
|
||||||
|
return Bukkit.getOfflinePlayer(profile.getId());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (profile.getName() != null) {
|
||||||
|
return Bukkit.getOfflinePlayer(profile.getName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren