Refined and completed the new decorations

This commit is contained in:
Artemis-the-gr8 2022-11-09 13:11:41 +01:00
parent a12521e529
commit 9b62828c04
8 changed files with 24 additions and 17 deletions

View File

@ -88,7 +88,7 @@ public final class TabCompleter implements org.bukkit.command.TabCompleter {
@Contract(pure = true)
private @Unmodifiable List<String> getSecondTestSuggestions() {
return List.of("halloween", "pride", "bukkit", "console", "default", "winter");
return List.of("halloween", "pride", "bukkit", "console", "default", "winter", "birthday");
}
private @Nullable List<String> getStatCommandSuggestions(@NotNull String[] args) {

View File

@ -163,6 +163,7 @@ public final class OutputManager {
case "bukkit" -> new BukkitConsoleComponentFactory();
case "console" -> new ConsoleComponentFactory();
case "winter" -> new WinterComponentFactory();
case "birthday" -> new BirthdayComponentFactory();
default -> new ComponentFactory();
};
return MessageBuilder.fromComponentFactory(factory);

View File

@ -2,7 +2,7 @@ package com.artemis.the.gr8.playerstats.core.msg.components;
import net.kyori.adventure.text.TextComponent;
public class BirthdayComponentFactory extends ComponentFactory {
public final class BirthdayComponentFactory extends ComponentFactory {
public BirthdayComponentFactory() {
super();
@ -11,8 +11,14 @@ public class BirthdayComponentFactory extends ComponentFactory {
@Override
public TextComponent pluginPrefixAsTitle() {
return miniMessageToComponent(
"<gradient:#a405e3:#f74040:red:#ff9300:#f74040:#a405e3>" +
"<white>\ud83d\udd25</white> __________ [PlayerStats] __________ " +
"<white>\ud83d\udd25</white></gradient>");
"<gradient:#a405e3:#f74040:#f73b3b:#ff9300:#f74040:#a405e3>" +
"<#FF9300>\ud83d\udd25</#FF9300> __________ [PlayerStats] __________ " +
"<#FF9300>\ud83d\udd25</#FF9300></gradient>");
}
}
@Override
public TextComponent pluginPrefix() {
return miniMessageToComponent(
"<gradient:#a405e3:#f74040:#ff9300>[PlayerStats]</gradient>");
}
}

View File

@ -15,7 +15,7 @@ import static net.kyori.adventure.text.Component.text;
* a Bukkit Console. Bukkit consoles don't support hex colors,
* unlike Paper consoles.
*/
public class BukkitConsoleComponentFactory extends ComponentFactory {
public final class BukkitConsoleComponentFactory extends ComponentFactory {
public BukkitConsoleComponentFactory() {
super();

View File

@ -3,7 +3,7 @@ package com.artemis.the.gr8.playerstats.core.msg.components;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.TextComponent;
public class ConsoleComponentFactory extends ComponentFactory {
public final class ConsoleComponentFactory extends ComponentFactory {
public ConsoleComponentFactory() {
super();
@ -21,4 +21,4 @@ public class ConsoleComponentFactory extends ComponentFactory {
.color(HEARTS)
.build();
}
}
}

View File

@ -5,7 +5,7 @@ import org.jetbrains.annotations.NotNull;
import java.util.Random;
public class HalloweenComponentFactory extends ComponentFactory {
public final class HalloweenComponentFactory extends ComponentFactory {
public HalloweenComponentFactory() {
@ -15,7 +15,7 @@ public class HalloweenComponentFactory extends ComponentFactory {
@Override
public TextComponent pluginPrefixAsTitle() {
return miniMessageToComponent(
"<gradient:#f74040:gold:#FF6600:#f74040>" +
"<gradient:#ff9300:#f74040:#f73b3b:#ff9300:#f74040:#ff9300>" +
"<white>\u2620</white> __________ [PlayerStats] __________ " +
"<white>\u2620</white></gradient>");
}

View File

@ -8,7 +8,7 @@ import java.util.Random;
/**
* A festive version of the {@link ComponentFactory}
*/
public class PrideComponentFactory extends ComponentFactory {
public final class PrideComponentFactory extends ComponentFactory {
public PrideComponentFactory() {
super();

View File

@ -2,7 +2,7 @@ package com.artemis.the.gr8.playerstats.core.msg.components;
import net.kyori.adventure.text.TextComponent;
public class WinterComponentFactory extends ComponentFactory {
public final class WinterComponentFactory extends ComponentFactory {
public WinterComponentFactory() {
super();
@ -12,13 +12,13 @@ public class WinterComponentFactory extends ComponentFactory {
public TextComponent pluginPrefixAsTitle() {
return miniMessageToComponent(
"<gradient:#4f20f7:#4bc3fa:#05ebb1:#4f20f7>" +
"<white>\u2744</white> __________ [PlayerStats] __________ " +
"<white>\u2744</white></gradient>");
"<#D6F1FE>\u2744</#D6F1FE> __________ [PlayerStats] __________ " +
"<#D6F1FE>\u2744</#D6F1FE></gradient>");
}
@Override
public TextComponent pluginPrefix() {
return miniMessageToComponent(
"<gradient:#4bc3fa:#05ebb1:#409ef7>[PlayerStats]</gradient>");
"<gradient:#4CA5F9:#15D6C4:#409ef7:#4F2FF7>[PlayerStats]</gradient>");
}
}
}