2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: DigitalRegent <misterwener@gmail.com>
|
|
|
|
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
|
2023-07-22 21:38:40 +02:00
|
|
|
index 1f559c18d961ba31f723a9664201e5522dd7d14a..eb5fdf0d907f7e6d49cccbf0476ccfd25f578f2d 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
2023-07-22 21:38:40 +02:00
|
|
|
@@ -2911,6 +2911,16 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2021-06-11 14:02:28 +02:00
|
|
|
// 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();
|