mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 14:35:11 +01:00
Do not send plugin headers when it is not required (#8889)
This commit is contained in:
parent
87bb3e6f4c
commit
062028941f
2 changed files with 13 additions and 4 deletions
|
@ -54,4 +54,5 @@ vytskalt <vytskalt@protonmail.com>
|
||||||
TheFruxz <cedricspitzer@outlook.de>
|
TheFruxz <cedricspitzer@outlook.de>
|
||||||
Kieran Wallbanks <kieran.wallbanks@gmail.com>
|
Kieran Wallbanks <kieran.wallbanks@gmail.com>
|
||||||
Denery <dorofeevij@gmail.com>
|
Denery <dorofeevij@gmail.com>
|
||||||
|
Jakubk15 <jakubk15@protonmail.com>
|
||||||
```
|
```
|
||||||
|
|
|
@ -37,10 +37,10 @@ index 6a00f3d38da8107825ab1d405f337fd077b09f72..d44d0074446c1c54e87dc8078dff7fef
|
||||||
}
|
}
|
||||||
diff --git a/src/main/java/io/papermc/paper/command/PaperPluginsCommand.java b/src/main/java/io/papermc/paper/command/PaperPluginsCommand.java
|
diff --git a/src/main/java/io/papermc/paper/command/PaperPluginsCommand.java b/src/main/java/io/papermc/paper/command/PaperPluginsCommand.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000000000000000000000000000000000..72096a66a4046633de73a12f5a043ac6dff169b1
|
index 0000000000000000000000000000000000000000..f0fce4113fb07c64adbec029d177c236cbdcbae8
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/io/papermc/paper/command/PaperPluginsCommand.java
|
+++ b/src/main/java/io/papermc/paper/command/PaperPluginsCommand.java
|
||||||
@@ -0,0 +1,207 @@
|
@@ -0,0 +1,215 @@
|
||||||
+package io.papermc.paper.command;
|
+package io.papermc.paper.command;
|
||||||
+
|
+
|
||||||
+import com.google.common.collect.Lists;
|
+import com.google.common.collect.Lists;
|
||||||
|
@ -229,11 +229,19 @@ index 0000000000000000000000000000000000000000..72096a66a4046633de73a12f5a043ac6
|
||||||
+ //.append(INFO_ICON_START.hoverEvent(SERVER_PLUGIN_INFO)); TODO: Add docs
|
+ //.append(INFO_ICON_START.hoverEvent(SERVER_PLUGIN_INFO)); TODO: Add docs
|
||||||
+
|
+
|
||||||
+ sender.sendMessage(infoMessage);
|
+ sender.sendMessage(infoMessage);
|
||||||
+ sender.sendMessage(PAPER_HEADER);
|
+
|
||||||
|
+ if (!paperPlugins.isEmpty()) {
|
||||||
|
+ sender.sendMessage(PAPER_HEADER);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
+ for (Component component : formatProviders(paperPlugins)) {
|
+ for (Component component : formatProviders(paperPlugins)) {
|
||||||
+ sender.sendMessage(component);
|
+ sender.sendMessage(component);
|
||||||
+ }
|
+ }
|
||||||
+ sender.sendMessage(BUKKIT_HEADER);
|
+
|
||||||
|
+ if (!spigotPlugins.isEmpty()) {
|
||||||
|
+ sender.sendMessage(BUKKIT_HEADER);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
+ for (Component component : formatProviders(spigotPlugins)) {
|
+ for (Component component : formatProviders(spigotPlugins)) {
|
||||||
+ sender.sendMessage(component);
|
+ sender.sendMessage(component);
|
||||||
+ }
|
+ }
|
||||||
|
|
Loading…
Reference in a new issue