1
0
mirror of https://github.com/moparisthebest/xAuth synced 2024-12-21 22:58:51 -05:00

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

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());