mirror of
https://hub.spigotmc.org/stash/scm/spigot/spigot.git
synced 2025-04-13 09:32:09 +00:00
27 lines
897 B
Diff
27 lines
897 B
Diff
From d8951e12ae42e4b859c7f8d47d6feb408b361aae 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 b7c46512..bd9cc200 100644
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
|
@@ -1805,6 +1805,13 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
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.");
|
|
+ }
|
|
}
|
|
|
|
@NotNull
|
|
--
|
|
2.40.1
|
|
|