From d31a293486b99779ccfea8f02e2abf382848d7a4 Mon Sep 17 00:00:00 2001 From: Daniel Walsh Date: Mon, 20 Jul 2020 16:04:49 +0100 Subject: [PATCH] Requested changes --- .../core/commands/subcommands/VersionsCommand.java | 11 ++++++----- .../slimefun4/core/services/MetricsService.java | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/core/commands/subcommands/VersionsCommand.java b/src/main/java/io/github/thebusybiscuit/slimefun4/core/commands/subcommands/VersionsCommand.java index 1b533925b..476e5e4d6 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/core/commands/subcommands/VersionsCommand.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/core/commands/subcommands/VersionsCommand.java @@ -35,11 +35,12 @@ class VersionsCommand extends SubCommand { sender.sendMessage(ChatColors.color("&a" + Bukkit.getName() + " &2" + ReflectionUtils.getVersion())); sender.sendMessage(""); sender.sendMessage(ChatColors.color("&aCS-CoreLib &2v" + SlimefunPlugin.getCSCoreLibVersion())); - sender.sendMessage(ChatColors.color("&aSlimefun &2v" + SlimefunPlugin.getVersion()) - + (SlimefunPlugin.getMetricsService().getVersion() != null - ? " (Metrics build: #" + SlimefunPlugin.getMetricsService().getVersion() + ')' - : "") - ); + + String version = "&aSlimefun &2v" + SlimefunPlugin.getVersion(); + if (SlimefunPlugin.getMetricsService().getVersion() != null) + version += "&7 (Metrics build: &2#" + SlimefunPlugin.getMetricsService().getVersion() + ')'; + + sender.sendMessage(ChatColors.color(version)); if (SlimefunPlugin.getRegistry().isBackwardsCompatible()) { sender.sendMessage(ChatColor.YELLOW + "Backwards compatiblity enabled!"); diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/MetricsService.java b/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/MetricsService.java index a0e1ec296..b9b8b69c8 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/MetricsService.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/MetricsService.java @@ -25,6 +25,7 @@ import org.bukkit.plugin.Plugin; * Note: To start the metrics you will need to be calling {@link #start()} * * @author TheBusyBiscuit + * @author WalshyDev */ public class MetricsService {