Skip to content

Add a command to view all plugins on the proxy#642

Closed
Findus642 wants to merge 3 commits into
PaperMC:masterfrom
Findus642:master
Closed

Add a command to view all plugins on the proxy#642
Findus642 wants to merge 3 commits into
PaperMC:masterfrom
Findus642:master

Conversation

@Findus642
Copy link
Copy Markdown

Although not useful for everyone, it can have a purpose.

The command simply shows what plugins are active on the proxy, in the same way as /plugins does on Bukkit. It would be useful for developers that might not be able to view a full console (due to line limits with hosts) to see if their plugin has been loaded/enabled. It can also be used by owners to see if a plugin has loaded or to see what plugins are installed without having to access files directly.

@Findus642 Findus642 changed the title Add a command to view all commands on the proxy Add a command to view all plugins on the proxy May 20, 2021
@Findus642
Copy link
Copy Markdown
Author

Wrote the commit name wrong- it shows all plugins not commands :(

Comment thread BungeeCord-Patches/0063-Add-command-to-view-all-proxy-plugins.patch Outdated
Comment thread BungeeCord-Patches/0063-Add-command-to-view-all-proxy-plugins.patch Outdated
@Janmm14
Copy link
Copy Markdown
Contributor

Janmm14 commented May 20, 2021

Wrote the commit name wrong- it shows all plugins not commands :(

Amend & force push to fix

@Findus642
Copy link
Copy Markdown
Author

All above should be resolved now with the suggestions implemented

Comment thread BungeeCord-Patches/0063-Add-command-to-view-all-proxy-plugins.patch Outdated
new file mode 100644
index 00000000..0a8cd585
--- /dev/null
+++ b/proxy/src/main/java/net/md_5/bungee/command/CommandPlugins.java
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably be in the waterfall package and in a separate module

Comment thread BungeeCord-Patches/0063-Add-command-to-view-all-proxy-plugins.patch Outdated
Comment thread BungeeCord-Patches/0063-Add-command-to-view-all-proxy-plugins.patch Outdated
…Cord message components (Marked TODO for Adventure)
for (Plugin plugin : plugins) {
if (!firstIteration) {
- builder.append(ChatColor.WHITE).append(", ");
+ component.addExtra(ChatColor.WHITE + ", ");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect usage of BungeeCord's Chat API.
Please actually use the ComponentBuilder.

}

- builder.append(ChatColor.GREEN).append(plugin.getDescription().getName());
+ component.addExtra(ChatColor.GREEN + plugin.getDescription().getName());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

@Findus642
Copy link
Copy Markdown
Author

All the above has been noted- I'm going to have to reopen this however as I somehow broke my repository (locally)

@Findus642 Findus642 closed this May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants