diff --git a/src/main/java/com/intellectualcrafters/plot/PS.java b/src/main/java/com/intellectualcrafters/plot/PS.java index 1b3460752..596fc7613 100644 --- a/src/main/java/com/intellectualcrafters/plot/PS.java +++ b/src/main/java/com/intellectualcrafters/plot/PS.java @@ -1437,7 +1437,7 @@ public class PS { PS.debug("&7PlotSquared is already up to date!"); return null; } - dl = dl.replaceAll("${PLATFORM}", getPlatform()); + dl = dl.replaceAll(Pattern.quote("${PLATFORM}"), getPlatform()); log("&6PlotSquared v" + line + " is available:"); log("&8 - &3Use: &7/plot update"); log("&8 - &3Or: &7" + dl); @@ -1455,7 +1455,8 @@ public class PS { return false; } try { - File newJar = new File("plugins/update/PlotSquared.jar"); + String name = FILE.getName(); + File newJar = new File("plugins/update/" + name); MainUtil.sendMessage(sender, "$1Downloading from provided URL: &7" + url); MainUtil.sendMessage(sender, "$2 - User-Agent: " + "Mozilla/4.0"); URLConnection con = url.openConnection(); diff --git a/target/PlotSquared-Bukkit.jar b/target/PlotSquared-Bukkit.jar index 054439eb9..17c56ccab 100644 Binary files a/target/PlotSquared-Bukkit.jar and b/target/PlotSquared-Bukkit.jar differ diff --git a/target/PlotSquared-Sponge.jar b/target/PlotSquared-Sponge.jar index 67ab0fbe8..f6468e143 100644 Binary files a/target/PlotSquared-Sponge.jar and b/target/PlotSquared-Sponge.jar differ