diff --git a/patches/api/Player.setPlayerProfile-API.patch b/patches/api/Player.setPlayerProfile-API.patch index bf7fae788a..edb724d00e 100644 --- a/patches/api/Player.setPlayerProfile-API.patch +++ b/patches/api/Player.setPlayerProfile-API.patch @@ -10,7 +10,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 --- a/src/main/java/org/bukkit/Bukkit.java +++ b/src/main/java/org/bukkit/Bukkit.java @@ -0,0 +0,0 @@ public final class Bukkit { + * @return the new PlayerProfile + * @throws IllegalArgumentException if both the unique id is * null and the name is null or blank ++ * @deprecated use {@link #createProfile(UUID, String)} */ @NotNull + @Deprecated // Paper @@ -18,7 +21,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 return server.createPlayerProfile(uniqueId, name); } @@ -0,0 +0,0 @@ public final class Bukkit { + * @param uniqueId the unique id + * @return the new PlayerProfile * @throws IllegalArgumentException if the unique id is null ++ * @deprecated use {@link #createProfile(UUID)} */ @NotNull + @Deprecated // Paper @@ -26,7 +32,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 return server.createPlayerProfile(uniqueId); } @@ -0,0 +0,0 @@ public final class Bukkit { + * @return the new PlayerProfile + * @throws IllegalArgumentException if the name is null or * blank ++ * @deprecated use {@link #createProfile(String)} */ @NotNull + @Deprecated // Paper @@ -38,7 +47,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -0,0 +0,0 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi + * @return the new PlayerProfile + * @throws IllegalArgumentException if both the unique id is * null and the name is null or blank ++ * @deprecated use {@link #createProfile(UUID, String)} */ @NotNull + @Deprecated // Paper @@ -46,7 +58,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 /** @@ -0,0 +0,0 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi + * @param uniqueId the unique id + * @return the new PlayerProfile * @throws IllegalArgumentException if the unique id is null ++ * @deprecated use {@link #createProfile(UUID)} */ @NotNull + @Deprecated // Paper @@ -54,7 +69,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 /** @@ -0,0 +0,0 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi + * @return the new PlayerProfile + * @throws IllegalArgumentException if the name is null or * blank ++ * @deprecated use {@link #createProfile(String)} */ @NotNull + @Deprecated