geforkt von Mirrors/Paper
Removed pointless counter and use .length in PluginsCommand. Thanks nallar!
By: EvilSeph <evilseph@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
14e68f6ae7
Commit
63ff0d4cb0
@ -27,7 +27,6 @@ public class PluginsCommand extends BukkitCommand {
|
||||
private String getPluginList() {
|
||||
StringBuilder pluginList = new StringBuilder();
|
||||
Plugin[] plugins = Bukkit.getPluginManager().getPlugins();
|
||||
int pluginCount = 0;
|
||||
|
||||
for (Plugin plugin : plugins) {
|
||||
if (pluginList.length() > 0) {
|
||||
@ -37,9 +36,8 @@ public class PluginsCommand extends BukkitCommand {
|
||||
|
||||
pluginList.append(plugin.isEnabled() ? ChatColor.GREEN : ChatColor.RED);
|
||||
pluginList.append(plugin.getDescription().getName());
|
||||
pluginCount++;
|
||||
}
|
||||
|
||||
return "(" + pluginCount + "): " + pluginList.toString();
|
||||
return "(" + plugins.length + "): " + pluginList.toString();
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren