mirror of
https://hub.spigotmc.org/stash/scm/spigot/spigot.git
synced 2025-08-31 21:49:13 +00:00
28 lines
856 B
Diff
28 lines
856 B
Diff
From 1a9ca9421f2b51f41e7bd8d3531796754a824dfa 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 4fcee1d0..eaf5553b 100644
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
|
@@ -1507,6 +1507,14 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
{
|
|
throw new UnsupportedOperationException( "Not supported yet." );
|
|
}
|
|
+
|
|
+ /**
|
|
+ * Respawns the player if dead.
|
|
+ */
|
|
+ public void respawn()
|
|
+ {
|
|
+ throw new UnsupportedOperationException( "Not supported yet." );
|
|
+ }
|
|
}
|
|
|
|
@NotNull
|
|
--
|
|
2.20.1
|
|
|