Skip to content

Commit

Permalink
Merge pull request #33 from TreeboMC/development
Browse files Browse the repository at this point in the history
Fix for loading other players homes file. Was pointing to old data st…
  • Loading branch information
ShakeforProtein authored Aug 23, 2021
2 parents ada7b31 + 93b1786 commit 6194892
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St

if (args.length == 1 && staff) {
//homesYml = new File(pl.getDataFolder() + File.separator + "homes", File.separator + (Bukkit.getOfflinePlayer(args[0])).getUniqueId().toString() + ".yml");
homesYml = new File(pl.getDataFolder() + File.separator + Bukkit.getOfflinePlayer(args[0]).getUniqueId().toString(), File.separator + "homes.yml");
homesYml = new File(pl.getPlayerDataFolder() + File.separator + Bukkit.getOfflinePlayer(args[0]).getUniqueId().toString(), File.separator + "homes.yml");
owner = args[0].toLowerCase();
}

Expand Down

0 comments on commit 6194892

Please sign in to comment.