From b5b9e19cffc7480efe64ece2d00d8a11f3208846 Mon Sep 17 00:00:00 2001 From: benwoo1110 <30431861+benwoo1110@users.noreply.github.com> Date: Wed, 23 Dec 2020 21:17:46 +0800 Subject: [PATCH] Add suggestDownload method. Possibly use this in the future. --- .../MultiverseCore/commandTools/MVCommandManager.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/onarandombox/MultiverseCore/commandTools/MVCommandManager.java b/src/main/java/com/onarandombox/MultiverseCore/commandTools/MVCommandManager.java index ec9e7555..d75ff005 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/commandTools/MVCommandManager.java +++ b/src/main/java/com/onarandombox/MultiverseCore/commandTools/MVCommandManager.java @@ -52,7 +52,6 @@ import org.bukkit.plugin.PluginDescriptionFile; import org.jetbrains.annotations.NotNull; import java.util.Arrays; -import java.util.List; import java.util.Set; import java.util.regex.Pattern; @@ -172,4 +171,13 @@ public class MVCommandManager extends PaperCommandManager { sender.sendMessage(colour.getColorThis() + description.getName() + ChatColor.DARK_GRAY + " | " + colour.getColorThat() + "v" + description.getVersion()); sender.sendMessage(ChatColor.DARK_GREEN + "See " + ChatColor.GREEN + "/" + baseCommand + " help " + ChatColor.DARK_GREEN + "for commands available."); } + + public void suggestDownload(@NotNull CommandSender sender, + @NotNull String pluginName, + @NotNull ColourAlternator colours, + @NotNull String downloadLink) { + + sender.sendMessage(colours.getColorThis() + pluginName + ChatColor.WHITE + " is not installed on this server. You can learn more and download it at:"); + sender.sendMessage(colours.getColorThat() + downloadLink); + } }