mirror of
https://e.coding.net/circlecloud/AuthMe.git
synced 2025-11-27 21:56:26 +00:00
@@ -59,17 +59,13 @@ public class API {
|
||||
public static Location getLastLocation(final Player player) {
|
||||
try {
|
||||
final PlayerAuth auth = PlayerCache.getInstance().getAuth(player.getName().toLowerCase());
|
||||
|
||||
if (auth != null) {
|
||||
final Location loc = new Location(Bukkit.getWorld(auth.getWorld()), auth.getQuitLocX(), auth.getQuitLocY(), auth.getQuitLocZ());
|
||||
return loc;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
} catch (final NullPointerException ex) {
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user