0
0
mirror of https://hub.spigotmc.org/stash/scm/spigot/spigot.git synced 2024-11-24 09:26:26 +00:00
spigot/Bukkit-Patches/0005-Add-respawn-API.patch
2024-10-24 06:15:00 +11:00

28 lines
884 B
Diff

From ba9ed20617e2ca645a2252ad49f2ad446319d4c8 Mon Sep 17 00:00:00 2001
From: ninja- <xninja@openmailbox.org>
Date: Tue, 8 Oct 2013 14:35:58 +0200
Subject: [PATCH] Add respawn API.
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index 975305be..8ac939b4 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -2301,6 +2301,13 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
public InetSocketAddress getRawAddress() {
throw new UnsupportedOperationException("Not supported yet.");
}
+
+ /**
+ * Respawns the player if dead.
+ */
+ public void respawn() {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
}
@NotNull
--
2.47.0