diff --git a/paper-api/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java b/paper-api/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java index 5ed6c6f8b..15b12abe1 100644 --- a/paper-api/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java +++ b/paper-api/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java @@ -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(); } diff --git a/paper-api/src/main/java/com/destroystokyo/paper/profile/PlayerProfile.java b/paper-api/src/main/java/com/destroystokyo/paper/profile/PlayerProfile.java index 324c1cba4..b2bf64a39 100644 --- a/paper-api/src/main/java/com/destroystokyo/paper/profile/PlayerProfile.java +++ b/paper-api/src/main/java/com/destroystokyo/paper/profile/PlayerProfile.java @@ -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(); }