#474: Add ability to set other plugin names as provided API so others can still depend on it

By: Phoenix616 <mail@moep.tv>
This commit is contained in:
Bukkit/Spigot
2020-03-15 18:59:32 +11:00
parent b35aa20f22
commit aec6ad036b
3 changed files with 112 additions and 8 deletions

View File

@@ -45,6 +45,10 @@ public class PluginsCommand extends BukkitCommand {
pluginList.append(plugin.isEnabled() ? ChatColor.GREEN : ChatColor.RED);
pluginList.append(plugin.getDescription().getName());
if (plugin.getDescription().getProvides().size() > 0) {
pluginList.append(" (").append(String.join(", ", plugin.getDescription().getProvides())).append(")");
}
}
return "(" + plugins.length + "): " + pluginList.toString();