Skip to content

Commit 3ac0f96

Browse files
committed
修复获取离线玩家位置逻辑
1 parent feb329b commit 3ac0f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/cc/baka9/catseedlogin/bukkit/Config.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public static void reload(){
282282

283283
// 获取玩家退出服务器时的位置
284284
public static Optional<Location> getOfflineLocation(Player player) {
285-
return Optional.ofNullable(offlineLocations.get(player.getName()))
285+
return Optional.ofNullable(plugin.getConfig().getString("offlineLocations." + player.getName()))
286286
.map(Config::str2Location);
287287
}
288288

0 commit comments

Comments
 (0)