Fix plugin provides not being listed behind name in /plugins (#4825)

This commit is contained in:
Max Lee
2020-12-01 15:06:14 +01:00
parent 2e2d31ae89
commit 33f101b760
3 changed files with 12 additions and 32 deletions

View File

@@ -39,17 +39,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
pluginList.append(", ");
}
- pluginList.append(plugin.isEnabled() ? ChatColor.GREEN : ChatColor.RED);
- pluginList.append(plugin.getDescription().getName());
+ Plugin plugin = entry.getValue();
+
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(")");
@@ -0,0 +0,0 @@ public class PluginsCommand extends BukkitCommand {
}
+
+
+ pluginList.append(plugin.isEnabled() ? ChatColor.GREEN : ChatColor.RED);
+ pluginList.append(plugin.getDescription().getName());
}
- return "(" + plugins.length + "): " + pluginList.toString();