mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 15:00:13 +01:00
Do not send plugin headers when it is not required (#8889)
This commit is contained in:
parent
751beefa8e
commit
4ad4252079
2 changed files with 11 additions and 2 deletions
|
@ -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);
|
||||
+ }
|
||||
|
|
Loading…
Reference in a new issue