1
0
mirror of https://e.coding.net/circlecloud/AuthMe.git synced 2025-11-27 21:56:26 +00:00

代码清理...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-12-12 10:58:05 +08:00
parent f9037706ee
commit aa5f01c3ed
10 changed files with 1363 additions and 236 deletions

View File

@@ -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;
}
/**