0
0
mirror of https://hub.spigotmc.org/stash/scm/spigot/spigot.git synced 2025-07-06 07:43:00 +00:00
Files
spigot/Bukkit-Patches/0005-Add-respawn-API.patch
2025-06-18 01:15:00 +10:00

28 lines
884 B
Diff

From bd1a046a91f8f8b6607336074682d4d87800dc2a 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 e447f0f7..68b79de9 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -2307,6 +2307,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.49.0