Fix SaveQuitLoc, idk why spigot handle quit player as dead player
This commit is contained in:
parent
4ecbd7b526
commit
5ed134b172
@ -48,7 +48,7 @@ public class AsyncronousQuit {
|
|||||||
|
|
||||||
String ip = plugin.getIP(player);
|
String ip = plugin.getIP(player);
|
||||||
|
|
||||||
if (PlayerCache.getInstance().isAuthenticated(name) && !player.isDead()) {
|
if (PlayerCache.getInstance().isAuthenticated(name)) {
|
||||||
if (Settings.isSaveQuitLocationEnabled && database.isAuthAvailable(name)) {
|
if (Settings.isSaveQuitLocationEnabled && database.isAuthAvailable(name)) {
|
||||||
Location loc = player.getLocation();
|
Location loc = player.getLocation();
|
||||||
PlayerAuth auth = new PlayerAuth(name, loc.getX(), loc.getY(), loc.getZ(), loc.getWorld().getName(), player.getName());
|
PlayerAuth auth = new PlayerAuth(name, loc.getX(), loc.getY(), loc.getZ(), loc.getWorld().getName(), player.getName());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user