Pull in respawn API, thanks @ninja-

By: Ammar Askar <ammar@ammaraskar.com>
This commit is contained in:
Spigot
2013-10-08 18:56:05 +05:00
parent 082750dfb1
commit c7a44916b5
2 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
From 1b666e47c484bbf9b02653da53a53e978bc645dd 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.
---
src/main/java/org/bukkit/entity/Player.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index 9ee8f5f..8fd9a07 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -762,6 +762,14 @@ public void setCollidesWithEntities(boolean collides)
{
throw new UnsupportedOperationException( "Not supported yet." );
}
+
+ /**
+ * Respawns the player if dead.
+ */
+ public void respawn()
+ {
+ throw new UnsupportedOperationException( "Not supported yet." );
+ }
}
Spigot spigot();
--
1.8.4