0
0
mirror of https://hub.spigotmc.org/stash/scm/spigot/spigot.git synced 2024-11-21 19:46:14 +00:00
spigot/Bukkit-Patches/0004-BungeeCord-Support.patch
2024-10-24 06:15:00 +11:00

31 lines
983 B
Diff

From 7d0b01101d3ecfdfe8e0a0da8eb7e621749df7e5 Mon Sep 17 00:00:00 2001
From: md_5 <git@md-5.net>
Date: Sun, 2 Jun 2013 15:20:49 +1000
Subject: [PATCH] BungeeCord Support
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index fa02099c..975305be 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -2291,6 +2291,16 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
// Spigot start
public class Spigot extends Entity.Spigot {
+ /**
+ * Gets the connection address of this player, regardless of whether it
+ * has been spoofed or not.
+ *
+ * @return the player's connection address
+ */
+ @NotNull
+ public InetSocketAddress getRawAddress() {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
}
@NotNull
--
2.47.0