diff options
Diffstat (limited to 'patches/api/0372-Custom-Chat-Completion-Suggestions-API.patch')
-rw-r--r-- | patches/api/0372-Custom-Chat-Completion-Suggestions-API.patch | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/patches/api/0372-Custom-Chat-Completion-Suggestions-API.patch b/patches/api/0372-Custom-Chat-Completion-Suggestions-API.patch index 7a2c93272a..af41b642c9 100644 --- a/patches/api/0372-Custom-Chat-Completion-Suggestions-API.patch +++ b/patches/api/0372-Custom-Chat-Completion-Suggestions-API.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Custom Chat Completion Suggestions API diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java -index d2f3114d2fe708553b638010394022d09bde39cf..104629c89bd4d2a9c086bf2bdbf5dddc7d247660 100644 +index d2f3114d2fe708553b638010394022d09bde39cf..a175ec2744f6ae3e4823c3eaea52e7991b659851 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java -@@ -2809,6 +2809,25 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM +@@ -2809,6 +2809,29 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM * @throws IllegalArgumentException If the level is negative or greater than {@code 4} (i.e. not within {@code [0, 4]}). */ void sendOpLevel(byte level); @@ -18,7 +18,9 @@ index d2f3114d2fe708553b638010394022d09bde39cf..104629c89bd4d2a9c086bf2bdbf5dddc + * suggest when typing in chat. + * + * @param completions custom completions ++ * @deprecated use {@link #addCustomChatCompletions(Collection)} + */ ++ @Deprecated(since = "1.20.1") + void addAdditionalChatCompletions(@NotNull java.util.Collection<String> completions); + + /** @@ -29,7 +31,9 @@ index d2f3114d2fe708553b638010394022d09bde39cf..104629c89bd4d2a9c086bf2bdbf5dddc + * online player names are always suggested and cannot be removed. + * + * @param completions custom completions ++ * @deprecated use {@link #addCustomChatCompletions(Collection)} + */ ++ @Deprecated(since = "1.20.1") + void removeAdditionalChatCompletions(@NotNull java.util.Collection<String> completions); // Paper end |