mirror of
https://github.com/itHotL/PlayerStats.git
synced 2025-02-02 23:31:21 +01:00
Improved rainbow prefix, because... focus, fixed default top-list colors not being the right shade of gold in the config.yml
This commit is contained in:
parent
bf4a1aed03
commit
b91d16aec8
@ -99,6 +99,8 @@ public final class ShareManager {
|
||||
shareTimeStamp.put(playerName, Instant.now());
|
||||
|
||||
if (!sharedResults.offer(identifier)) { //create a new ArrayBlockingQueue if our queue is full
|
||||
MyLogger.logMsg("500 stat-results have been shared, " +
|
||||
"creating a new internal queue with the most recent 50 share-code-values and discarding the rest...", DebugLevel.MEDIUM);
|
||||
ArrayBlockingQueue<UUID> newQueue = new ArrayBlockingQueue<>(500);
|
||||
|
||||
synchronized (this) { //put the last 50 values in the new Queue
|
||||
|
@ -38,8 +38,11 @@ public class ConfigUpdateHandler {
|
||||
/** Adjusts some of the default colors to migrate from versions 2 or 3 to version 4 and above.*/
|
||||
private void updateDefaultColors(YamlConfiguration configuration) {
|
||||
updateColor(configuration, "top-list.title", "yellow", "#FFD52B");
|
||||
updateColor(configuration, "top-list.title", "#FFEA40", "#FFD52B");
|
||||
updateColor(configuration, "top-list.stat-names", "yellow", "#FFD52B");
|
||||
updateColor(configuration, "top-list.stat-names", "#FFEA40", "#FFD52B");
|
||||
updateColor(configuration, "top-list.sub-stat-names", "#FFD52B", "yellow");
|
||||
|
||||
updateColor(configuration, "individual-statistics.stat-names", "yellow", "#FFD52B");
|
||||
updateColor(configuration, "individual-statistics.sub-stat-names", "#FFD52B", "yellow");
|
||||
updateColor(configuration, "total-server.title", "gold", "#55AAFF");
|
||||
|
@ -109,6 +109,7 @@ public class MessageWriter {
|
||||
"Please wait for your previous lookup to finish!"));
|
||||
}
|
||||
|
||||
//TODO Make this say amount of time left
|
||||
public TextComponent stillOnShareCoolDown() {
|
||||
return componentFactory.pluginPrefixComponent(false)
|
||||
.append(space())
|
||||
|
@ -41,19 +41,19 @@ public class PrideComponentFactory extends ComponentFactory {
|
||||
}
|
||||
return text()
|
||||
.append(MiniMessage.miniMessage()
|
||||
.deserialize("<#fe3e3e>[</#fe3e3e>" +
|
||||
"<#fe5640>P</#fe5640>" +
|
||||
"<#f67824>l</#f67824>" +
|
||||
.deserialize("<#f74040>[</#f74040>" +
|
||||
"<#F54D39>P</#F54D39>" +
|
||||
"<#F16E28>l</#F16E28>" +
|
||||
"<#ee8a19>a</#ee8a19>" +
|
||||
"<#e49b0f>y</#e49b0f>" +
|
||||
"<#cbbd03>e</#cbbd03>" +
|
||||
"<#bccb01>r</#bccb01>" +
|
||||
"<#8aee08>S</#8aee08>" +
|
||||
"<#45fe31>t</#45fe31>" +
|
||||
"<#EEA019>y</#EEA019>" +
|
||||
"<#F7C522>e</#F7C522>" +
|
||||
"<#C1DA15>r</#C1DA15>" +
|
||||
"<#84D937>S</#84D937>" +
|
||||
"<#46D858>t</#46D858>" +
|
||||
"<#01c1a7>a</#01c1a7>" +
|
||||
"<#0690d4>t</#0690d4>" +
|
||||
"<#205bf3>s</#205bf3>" +
|
||||
"<#6c15fa>]</#6c15fa>"))
|
||||
"<#1F8BEB>t</#1F8BEB>" +
|
||||
"<#3341E6>s</#3341E6>" +
|
||||
"<#631ae6>]</#631ae6>"))
|
||||
.build();
|
||||
}
|
||||
|
||||
|
@ -119,13 +119,13 @@ hover-text-amount-lighter: 40
|
||||
# # ------------------------------ # #
|
||||
|
||||
top-list:
|
||||
title: '#FFEA40'
|
||||
title: '#FFD52B'
|
||||
title-style: none
|
||||
|
||||
title-number: gold
|
||||
title-number-style: none
|
||||
|
||||
stat-names: '#FFEA40'
|
||||
stat-names: '#FFD52B'
|
||||
stat-names-style: none
|
||||
|
||||
sub-stat-names: yellow
|
||||
|
Loading…
Reference in New Issue
Block a user