Fix clone return for Paper PlayerProfile (#12984)

This commit is contained in:
Pedro
2025-08-15 16:56:54 -04:00
committed by GitHub
parent a22447a555
commit b200237c7d
2 changed files with 9 additions and 1 deletions
@@ -477,7 +477,7 @@ public class PaperServerListPingEvent extends ServerListPingEvent implements Can
}
@Override
public org.bukkit.profile.@NotNull PlayerProfile clone() {
public @NotNull PlayerProfile clone() {
throw new UnsupportedOperationException();
}
@@ -243,4 +243,12 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile {
default boolean hasTextures() {
return this.hasProperty("textures");
}
/**
* {@inheritDoc}
*
* @return the cloned player profile.
*/
@Override
PlayerProfile clone();
}