Skip to content

Commit b200237

Browse files
authored
Fix clone return for Paper PlayerProfile (#12984)
1 parent a22447a commit b200237

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

paper-api/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ public boolean complete(final boolean textures, final boolean onlineMode) {
477477
}
478478

479479
@Override
480-
public org.bukkit.profile.@NotNull PlayerProfile clone() {
480+
public @NotNull PlayerProfile clone() {
481481
throw new UnsupportedOperationException();
482482
}
483483

paper-api/src/main/java/com/destroystokyo/paper/profile/PlayerProfile.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,12 @@ default boolean complete() {
243243
default boolean hasTextures() {
244244
return this.hasProperty("textures");
245245
}
246+
247+
/**
248+
* {@inheritDoc}
249+
*
250+
* @return the cloned player profile.
251+
*/
252+
@Override
253+
PlayerProfile clone();
246254
}

0 commit comments

Comments
 (0)