From a37d6d984b0554a5e2163512f8becb03935da415 Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Tue, 1 Aug 2023 12:44:51 -0500 Subject: [PATCH] clean: latest version is never null --- .../hmccosmetics/listener/PlayerConnectionListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/listener/PlayerConnectionListener.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/listener/PlayerConnectionListener.java index b8bc7476..e74389a6 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/listener/PlayerConnectionListener.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/listener/PlayerConnectionListener.java @@ -22,7 +22,7 @@ public class PlayerConnectionListener implements Listener { @EventHandler(priority = EventPriority.MONITOR) public void onPlayerJoin(@NotNull PlayerJoinEvent event) { if (event.getPlayer().isOp() || event.getPlayer().hasPermission("hmccosmetics.notifyupdate")) { - if (!HMCCosmeticsPlugin.getLatestVersion().equalsIgnoreCase(HMCCosmeticsPlugin.getInstance().getDescription().getVersion()) && HMCCosmeticsPlugin.getLatestVersion() != null) + if (!HMCCosmeticsPlugin.getLatestVersion().equalsIgnoreCase(HMCCosmeticsPlugin.getInstance().getDescription().getVersion()) && HMCCosmeticsPlugin.getLatestVersion().isEmpty()) MessagesUtil.sendMessageNoKey( event.getPlayer(), "
" +