spigot/Bukkit-Patches/0006-Add-respawn-API.patch

28 lines
884 B
Diff
Raw Normal View History

From 1a5ebf9908ceb20bdeb13c95ad5c2f47f07d1aa4 Mon Sep 17 00:00:00 2001
2013-10-08 18:56:05 +05:00
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
2023-12-17 10:26:51 +11:00
index c5f6bae4..bee0d3ba 100644
2013-10-08 18:56:05 +05:00
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
2023-12-17 10:26:51 +11:00
@@ -2055,6 +2055,13 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
public InetSocketAddress getRawAddress() {
2020-01-24 17:56:32 +11:00
throw new UnsupportedOperationException("Not supported yet.");
2013-10-08 18:56:05 +05:00
}
+
+ /**
+ * Respawns the player if dead.
+ */
2020-01-24 17:56:32 +11:00
+ public void respawn() {
+ throw new UnsupportedOperationException("Not supported yet.");
2013-10-08 18:56:05 +05:00
+ }
}
2019-03-13 17:43:06 +11:00
@NotNull
2013-10-08 18:56:05 +05:00
--
2023-12-06 03:40:00 +11:00
2.43.0
2013-10-09 18:22:37 +11:00