@ -4815,43 +4815,8 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -4815,43 +4815,8 @@ public class PlayerCharacter extends AbstractCharacter {
if(sourcePlayer==null)
return;
if(sourcePlayer.isAlive()){
Logger.error("Player "+sourcePlayer.getObjectUUID()+" respawning while alive");
return;
}
// ResetAfterDeath player
sourcePlayer.respawnLock.writeLock().lock();
try{
sourcePlayer.respawn(true,false,true);
}catch(Exceptione){
Logger.error(e);
}finally{
sourcePlayer.respawnLock.writeLock().unlock();
}
RespawnMsgmsg=newRespawnMsg();
// Echo ResetAfterDeath message back
msg.setPlayerHealth(sourcePlayer.getHealth());
// TODO calculate any experience loss before this point
@ -4860,11 +4825,11 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -4860,11 +4825,11 @@ public class PlayerCharacter extends AbstractCharacter {