aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0204-Brand-support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0204-Brand-support.patch')
-rw-r--r--patches/api/0204-Brand-support.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/api/0204-Brand-support.patch b/patches/api/0204-Brand-support.patch
new file mode 100644
index 0000000000..31a2278550
--- /dev/null
+++ b/patches/api/0204-Brand-support.patch
@@ -0,0 +1,27 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: DigitalRegent <[email protected]>
+Date: Mon, 6 Apr 2020 20:30:09 +0200
+Subject: [PATCH] Brand support
+
+
+diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
+index 7429666fd1af4f4a924cf93572df5b826782af05..b0c0fd6687af5676d85094304ced25c1c444bc90 100644
+--- a/src/main/java/org/bukkit/entity/Player.java
++++ b/src/main/java/org/bukkit/entity/Player.java
+@@ -3395,6 +3395,16 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
+ // Paper end
+ }
+
++ // Paper start - brand support
++ /**
++ * Returns player's client brand name. If the client didn't send this information, the brand name will be null.<br>
++ * For the Notchian client this name defaults to <code>vanilla</code>. Some modified clients report other names such as <code>forge</code>.<br>
++ * @return client brand name
++ */
++ @Nullable
++ String getClientBrandName();
++ // Paper end
++
+ @NotNull
+ @Override
+ Spigot spigot();