Made rainbow-prefix not random for APIformatter

This commit is contained in:
Artemis-the-gr8 2022-08-11 20:53:41 +02:00
parent d7285f71de
commit d4a7587642
2 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class ApiOutputManager implements ApiFormatter {
@Override
public TextComponent getRainbowPluginPrefix() {
return prideComponentFactory.pluginPrefix();
return prideComponentFactory.rainbowPrefix();
}
@Override

View File

@ -61,6 +61,10 @@ public class PrideComponentFactory extends ComponentFactory {
if (randomizer.nextBoolean()) {
return backwardsPluginPrefixComponent();
}
return rainbowPrefix();
}
public TextComponent rainbowPrefix() {
return text()
.append(MiniMessage.miniMessage()
.deserialize("<#f74040>[</#f74040>" +