mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 01:32:02 -07:00
Do not send plugin headers when it is not required (#8889)
This commit is contained in:
@@ -54,4 +54,5 @@ vytskalt <vytskalt@protonmail.com>
|
||||
TheFruxz <cedricspitzer@outlook.de>
|
||||
Kieran Wallbanks <kieran.wallbanks@gmail.com>
|
||||
Denery <dorofeevij@gmail.com>
|
||||
Jakubk15 <jakubk15@protonmail.com>
|
||||
```
|
||||
|
@@ -229,11 +229,19 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ //.append(INFO_ICON_START.hoverEvent(SERVER_PLUGIN_INFO)); TODO: Add docs
|
||||
+
|
||||
+ sender.sendMessage(infoMessage);
|
||||
+ sender.sendMessage(PAPER_HEADER);
|
||||
+
|
||||
+ if (!paperPlugins.isEmpty()) {
|
||||
+ sender.sendMessage(PAPER_HEADER);
|
||||
+ }
|
||||
+
|
||||
+ for (Component component : formatProviders(paperPlugins)) {
|
||||
+ sender.sendMessage(component);
|
||||
+ }
|
||||
+ sender.sendMessage(BUKKIT_HEADER);
|
||||
+
|
||||
+ if (!spigotPlugins.isEmpty()) {
|
||||
+ sender.sendMessage(BUKKIT_HEADER);
|
||||
+ }
|
||||
+
|
||||
+ for (Component component : formatProviders(spigotPlugins)) {
|
||||
+ sender.sendMessage(component);
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user