From 228b3e3112bbfc6e56b082ffabf68774f8a7c87c Mon Sep 17 00:00:00 2001 From: ninja- Date: Tue, 8 Oct 2013 14:34:49 +0200 Subject: [PATCH] Implement respawn API. --- src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 33674b1..2c607aa 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -1135,6 +1135,15 @@ public void setCollidesWithEntities(boolean collides) getHandle().collidesWithEntities = collides; getHandle().m = collides; // First boolean of Entity } + + @Override + public void respawn() + { + if ( entity.dead ) + { + server.getServer().getPlayerList().moveToWorld( getHandle(), 0, false ); + } + } }; public Player.Spigot spigot() -- 1.8.4