Skip to content

Commit

Permalink
fix owner get name
Browse files Browse the repository at this point in the history
  • Loading branch information
wdog5 committed Jan 6, 2024
1 parent 79f4960 commit 91e3f2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ public String getOwner() {
@Override
public OfflinePlayer getOwningPlayer() {
if (hasOwner()) {
if (!profile.getId().equals(Util.NIL_UUID)) {
if (profile.getId() != null) {
return Bukkit.getOfflinePlayer(profile.getId());
}

if (!profile.getName().isEmpty()) {
if (profile.getName() != null) {
return Bukkit.getOfflinePlayer(profile.getName());
}
}
Expand Down

0 comments on commit 91e3f2f

Please sign in to comment.