From 51c2e5247ce6895800df02d1f57067218d352f72 Mon Sep 17 00:00:00 2001 From: Dan Mulloy Date: Tue, 24 Jul 2018 14:45:24 -0400 Subject: [PATCH] Treat serverName jar as craftbukkit jar --- .../Mineplex.Core/src/mineplex/core/updater/FileUpdater.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/updater/FileUpdater.java b/Plugins/Mineplex.Core/src/mineplex/core/updater/FileUpdater.java index 4a7392332..50103e8d0 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/updater/FileUpdater.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/updater/FileUpdater.java @@ -231,7 +231,8 @@ public class FileUpdater extends MiniPlugin { try (FileInputStream stream = new FileInputStream(file)) { - _jarMd5Map.put(file.getName(), DigestUtils.md5Hex(stream)); + String fileName = file.getName().replace(UtilServer.getServerName(), "craftbukkit"); + _jarMd5Map.put(fileName, DigestUtils.md5Hex(stream)); } catch (IOException ex) {