mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-30 11:53:52 -07:00
Pull in respawn API, thanks @ninja-
By: Ammar Askar <ammar@ammaraskar.com>
This commit is contained in:
30
Bukkit-Patches/0018-Respawn-API.patch
Normal file
30
Bukkit-Patches/0018-Respawn-API.patch
Normal 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
|
Reference in New Issue
Block a user