Fix for a player being teleported to their spot of death after selecting "Title Menu" upon dieing.
This commit is contained in:
parent
9058274754
commit
7a67ea21ee
|
@ -200,6 +200,7 @@ public class xAuth extends JavaPlugin
|
||||||
public void addAuth(String pName, String pass)
|
public void addAuth(String pName, String pass)
|
||||||
{
|
{
|
||||||
String hash = whirlpool(pass);
|
String hash = whirlpool(pass);
|
||||||
|
|
||||||
auths.put(pName.toLowerCase(), pName.toLowerCase() + ":" + hash);
|
auths.put(pName.toLowerCase(), pName.toLowerCase() + ":" + hash);
|
||||||
|
|
||||||
if (settings.getBool("misc.autosave"))
|
if (settings.getBool("misc.autosave"))
|
||||||
|
@ -415,7 +416,7 @@ public class xAuth extends JavaPlugin
|
||||||
}
|
}
|
||||||
|
|
||||||
public void saveLocation(Player player) {
|
public void saveLocation(Player player) {
|
||||||
if (!settings.getBool("misc.protect-location"))
|
if (!settings.getBool("misc.protect-location") || player.getHealth() <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
locations.put(player, player.getLocation());
|
locations.put(player, player.getLocation());
|
||||||
|
|
Loading…
Reference in New Issue