Fix for a player being teleported to their spot of death after selecting "Title Menu" upon dieing.

This commit is contained in:
Zach Iverson 2011-06-05 17:06:41 -04:00
parent 9058274754
commit 7a67ea21ee
1 changed files with 2 additions and 1 deletions

View File

@ -200,6 +200,7 @@ public class xAuth extends JavaPlugin
public void addAuth(String pName, String pass)
{
String hash = whirlpool(pass);
auths.put(pName.toLowerCase(), pName.toLowerCase() + ":" + hash);
if (settings.getBool("misc.autosave"))
@ -415,7 +416,7 @@ public class xAuth extends JavaPlugin
}
public void saveLocation(Player player) {
if (!settings.getBool("misc.protect-location"))
if (!settings.getBool("misc.protect-location") || player.getHealth() <= 0)
return;
locations.put(player, player.getLocation());