We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5526ea2 commit c26285dCopy full SHA for c26285d
src/main/java/cc/baka9/catseedlogin/bukkit/Config.java
@@ -282,8 +282,7 @@ public static void reload(){
282
283
// 获取玩家退出服务器时的位置
284
public static Optional<Location> getOfflineLocation(Player player) {
285
- return Optional.ofNullable(offlineLocations.get(player.getName()))
286
- .map(Config::str2Location);
+ return Optional.ofNullable(plugin.getConfig().getString("offlineLocations." + player.getName())).map(Config::str2Location);
287
}
288
289
// 保存玩家退出服务器的位置
0 commit comments