Changed accent color for exclude-info-msg and removed unnecessary plugincolor

This commit is contained in:
Artemis-the-gr8 2022-12-05 15:43:49 +01:00
parent 89c2a0f85f
commit a6e15828c1
4 changed files with 12 additions and 17 deletions

View File

@ -52,11 +52,6 @@ public enum PluginColor {
*/ */
LIGHT_GOLD (TextColor.fromHexString("#FFEA40")), LIGHT_GOLD (TextColor.fromHexString("#FFEA40")),
/**
* A Light Yellow that is used for final accents in the example message (#FFFF8E).
*/
LIGHT_YELLOW (TextColor.fromHexString("#FFFF8E")),
/** /**
* The color of vanilla Minecraft hearts (#FF1313). * The color of vanilla Minecraft hearts (#FF1313).
*/ */

View File

@ -34,7 +34,7 @@ public final class BukkitConsoleComponentFactory extends ComponentFactory {
INFO_MSG = PluginColor.GOLD.getConsoleColor(); INFO_MSG = PluginColor.GOLD.getConsoleColor();
INFO_MSG_ACCENT_DARKEST = PluginColor.MEDIUM_GOLD.getConsoleColor(); INFO_MSG_ACCENT_DARKEST = PluginColor.MEDIUM_GOLD.getConsoleColor();
INFO_MSG_ACCENT_MEDIUM = PluginColor.LIGHT_GOLD.getConsoleColor(); INFO_MSG_ACCENT_MEDIUM = PluginColor.LIGHT_GOLD.getConsoleColor();
INFO_MSG_ACCENT_LIGHTEST = PluginColor.LIGHT_YELLOW.getConsoleColor(); INFO_MSG_ACCENT_LIGHTEST = PluginColor.LIGHTEST_BLUE.getConsoleColor();
MSG_HOVER = PluginColor.LIGHTEST_BLUE.getConsoleColor(); MSG_HOVER = PluginColor.LIGHTEST_BLUE.getConsoleColor();
MSG_CLICKED = PluginColor.LIGHT_PURPLE.getConsoleColor(); MSG_CLICKED = PluginColor.LIGHT_PURPLE.getConsoleColor();

View File

@ -47,7 +47,7 @@ public class ComponentFactory {
protected TextColor INFO_MSG; //gold protected TextColor INFO_MSG; //gold
protected TextColor INFO_MSG_ACCENT_DARKEST; //medium_gold protected TextColor INFO_MSG_ACCENT_DARKEST; //medium_gold
protected TextColor INFO_MSG_ACCENT_MEDIUM; //light_gold protected TextColor INFO_MSG_ACCENT_MEDIUM; //light_gold
protected TextColor INFO_MSG_ACCENT_LIGHTEST; //light_yellow protected TextColor INFO_MSG_ACCENT_LIGHTEST; //lightest_blue
protected TextColor MSG_HOVER; //lightest_blue protected TextColor MSG_HOVER; //lightest_blue
protected TextColor MSG_CLICKED; //light_purple protected TextColor MSG_CLICKED; //light_purple
@ -70,7 +70,7 @@ public class ComponentFactory {
INFO_MSG = PluginColor.GOLD.getColor(); INFO_MSG = PluginColor.GOLD.getColor();
INFO_MSG_ACCENT_DARKEST = PluginColor.MEDIUM_GOLD.getColor(); INFO_MSG_ACCENT_DARKEST = PluginColor.MEDIUM_GOLD.getColor();
INFO_MSG_ACCENT_MEDIUM = PluginColor.LIGHT_GOLD.getColor(); INFO_MSG_ACCENT_MEDIUM = PluginColor.LIGHT_GOLD.getColor();
INFO_MSG_ACCENT_LIGHTEST = PluginColor.LIGHT_YELLOW.getColor(); INFO_MSG_ACCENT_LIGHTEST = PluginColor.LIGHTEST_BLUE.getColor();
MSG_HOVER = PluginColor.LIGHTEST_BLUE.getColor(); MSG_HOVER = PluginColor.LIGHTEST_BLUE.getColor();
MSG_CLICKED = PluginColor.LIGHT_PURPLE.getColor(); MSG_CLICKED = PluginColor.LIGHT_PURPLE.getColor();
@ -88,7 +88,7 @@ public class ComponentFactory {
} }
public TextComponent getExampleName() { public TextComponent getExampleName() {
return text("Artemis_the_gr8").color(INFO_MSG_ACCENT_LIGHTEST); return text("Artemis_the_gr8").color(FEEDBACK_MSG);
} }
/** /**

View File

@ -39,18 +39,18 @@ public final class ExcludeInfoMessage implements TextComponent {
.append(text("add ").color(factory.INFO_MSG_ACCENT_DARKEST) .append(text("add ").color(factory.INFO_MSG_ACCENT_DARKEST)
.append(text("{player-name}").color(factory.INFO_MSG_ACCENT_MEDIUM)) .append(text("{player-name}").color(factory.INFO_MSG_ACCENT_MEDIUM))
.hoverEvent(HoverEvent.showText( .hoverEvent(HoverEvent.showText(
text("Excludes this player from /stat results").color(factory.FEEDBACK_MSG)))) text("Excludes this player from /stat results").color(factory.INFO_MSG_ACCENT_LIGHTEST))))
.append(Component.newline()) .append(Component.newline())
.append(factory.bulletPoint()).append(Component.space()) .append(factory.bulletPoint()).append(Component.space())
.append(text("remove ").color(factory.INFO_MSG_ACCENT_DARKEST) .append(text("remove ").color(factory.INFO_MSG_ACCENT_DARKEST)
.append(text("{player-name}").color(factory.INFO_MSG_ACCENT_MEDIUM)) .append(text("{player-name}").color(factory.INFO_MSG_ACCENT_MEDIUM))
.hoverEvent(HoverEvent.showText( .hoverEvent(HoverEvent.showText(
text("Includes this player in /stat results again").color(factory.FEEDBACK_MSG)))) text("Includes this player in /stat results again").color(factory.INFO_MSG_ACCENT_LIGHTEST))))
.append(Component.newline()) .append(Component.newline())
.append(factory.bulletPoint()).append(Component.space()) .append(factory.bulletPoint()).append(Component.space())
.append(text("list").color(factory.INFO_MSG_ACCENT_DARKEST) .append(text("list").color(factory.INFO_MSG_ACCENT_DARKEST)
.hoverEvent(HoverEvent.showText( .hoverEvent(HoverEvent.showText(
text("See a list of all currently excluded players").color(factory.FEEDBACK_MSG)))) text("See a list of all currently excluded players").color(factory.INFO_MSG_ACCENT_LIGHTEST))))
.append(Component.newline()) .append(Component.newline())
.append(Component.newline()) .append(Component.newline())
.append(text("Excluded players are:") .append(text("Excluded players are:")
@ -63,12 +63,12 @@ public final class ExcludeInfoMessage implements TextComponent {
.append(text("not counted for the server total").color(factory.INFO_MSG_ACCENT_MEDIUM)) .append(text("not counted for the server total").color(factory.INFO_MSG_ACCENT_MEDIUM))
.append(Component.newline()) .append(Component.newline())
.append(factory.arrow()).append(Component.space()) .append(factory.arrow()).append(Component.space())
.append(text("hidden").color(factory.INFO_MSG_ACCENT_MEDIUM) .append(text("hidden").color(factory.INFO_MSG_ACCENT_LIGHTEST)
.hoverEvent(HoverEvent.showText(text("All statistics are still stored and tracked by the server, ") .hoverEvent(HoverEvent.showText(text("All statistics are still stored and tracked by the")
.append(Component.newline()) .append(Component.newline())
.append(text("this command does not delete anything")) .append(text("server, this command does not delete anything!"))
.color(factory.FEEDBACK_MSG)))) .color(factory.INFO_MSG_ACCENT_LIGHTEST))))
.append(text(", not removed") .append(text(" - not removed")
.color(factory.INFO_MSG_ACCENT_MEDIUM)); .color(factory.INFO_MSG_ACCENT_MEDIUM));
} }