change status placeholer in title to use the placeholder displays in the config
This commit is contained in:
@@ -68,10 +68,10 @@ public class ListCommand extends BaseCommand {
|
||||
|
||||
m = m.append(Component.text("\n"));
|
||||
m = m.append(main.getMessages().getComponent("commands.listqueues.format",
|
||||
"COLOR:" + main.getMessages().color(color),
|
||||
"COLOR:" + Messages.color(color),
|
||||
"NAME:" + s.getAlias(),
|
||||
"COUNT:" + s.getQueue().size(),
|
||||
"STATUS:" + s.getStatusString(spp)
|
||||
"STATUS:" + main.getMessages().getRawString("placeholders.status."+s.getStatus(spp))
|
||||
));
|
||||
}
|
||||
sender.sendMessage(m);
|
||||
|
||||
@@ -380,7 +380,6 @@ public class QueueManagerImpl implements QueueManager {
|
||||
if(!main.getConfig().getBoolean("send-title")) return;
|
||||
|
||||
for(QueueServer server : servers) {
|
||||
String status = server.getStatusString();
|
||||
for(QueuePlayer queuePlayer : server.getQueue()) {
|
||||
|
||||
int pos = queuePlayer.getPosition();
|
||||
@@ -394,6 +393,8 @@ public class QueueManagerImpl implements QueueManager {
|
||||
|
||||
if(!getSingleServer(player).equals(server)) continue;
|
||||
|
||||
String status = main.getMessages().getRawString("placeholders.status."+server.getStatus(player));
|
||||
|
||||
int time = (int) Math.round(pos * main.getTimeBetweenPlayers());
|
||||
|
||||
Component titleMessage = msgs.getComponent("title.title",
|
||||
|
||||
Reference in New Issue
Block a user