aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0183-Add-Player-Client-Options-API.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0183-Add-Player-Client-Options-API.patch')
-rw-r--r--patches/api/0183-Add-Player-Client-Options-API.patch10
1 files changed, 8 insertions, 2 deletions
diff --git a/patches/api/0183-Add-Player-Client-Options-API.patch b/patches/api/0183-Add-Player-Client-Options-API.patch
index 94a094608b..02cbc4e48c 100644
--- a/patches/api/0183-Add-Player-Client-Options-API.patch
+++ b/patches/api/0183-Add-Player-Client-Options-API.patch
@@ -6,10 +6,10 @@ Subject: [PATCH] Add Player Client Options API
diff --git a/src/main/java/com/destroystokyo/paper/ClientOption.java b/src/main/java/com/destroystokyo/paper/ClientOption.java
new file mode 100644
-index 0000000000000000000000000000000000000000..7af28d6ba27c97a87ffbb9db03a5c340277853cc
+index 0000000000000000000000000000000000000000..290bde7050f43cb5cd6c0cea9eb7a05297536dec
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/ClientOption.java
-@@ -0,0 +1,70 @@
+@@ -0,0 +1,76 @@
+package com.destroystokyo.paper;
+
+import net.kyori.adventure.translation.Translatable;
@@ -44,6 +44,12 @@ index 0000000000000000000000000000000000000000..7af28d6ba27c97a87ffbb9db03a5c340
+ FULL("full"),
+ SYSTEM("system"),
+ HIDDEN("hidden"),
++ /**
++ * @deprecated no longer used anymore since 1.15.2, the value fallback
++ * to the default value of the setting when unknown on the server.
++ * In this case {@link #FULL} will be returned.
++ */
++ @Deprecated(since = "1.15.2", forRemoval = true)
+ UNKNOWN("unknown");
+
+ public static final Index<String, ChatVisibility> NAMES = Index.create(ChatVisibility.class, chatVisibility -> chatVisibility.name);