Skip to content

Commit

Permalink
Fix for loading other players homes file. Was pointing to old data st…
Browse files Browse the repository at this point in the history
…orage location.
  • Loading branch information
ShakeforProtein committed Aug 23, 2021
1 parent ada7b31 commit 93b1786
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 93b1786

Please sign in to comment.