From 93b178658dc6e9fe92945a3d5934f5cc44b6a9b4 Mon Sep 17 00:00:00 2001 From: ShakeforProtein Date: Mon, 23 Aug 2021 16:01:58 +1000 Subject: [PATCH] Fix for loading other players homes file. Was pointing to old data storage location. --- .../java/me/shakeforprotein/treeboteleport/Commands/Homes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/shakeforprotein/treeboteleport/Commands/Homes.java b/src/main/java/me/shakeforprotein/treeboteleport/Commands/Homes.java index 1b045f1..9f6aea5 100644 --- a/src/main/java/me/shakeforprotein/treeboteleport/Commands/Homes.java +++ b/src/main/java/me/shakeforprotein/treeboteleport/Commands/Homes.java @@ -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(); }