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

28 lines
886 B
Diff
Raw Normal View History

2024-08-09 07:00:00 +10:00
From 439fd305cea7bd67b9c3f032773dc6a56b914222 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
2024-06-14 01:05:00 +10:00
index 4a9d28888..1fd13dd8c 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
2024-06-14 01:05:00 +10:00
@@ -2261,6 +2261,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
--
2024-08-09 07:00:00 +10:00
2.46.0
2013-10-09 18:22:37 +11:00