Loop support for hologram lines
Just making sure
- [X] I have read the wiki and made sure, this feature is not yet in the plugin.
- [X] I believe, that this feature is possible to implement.
- [X] I made sure, that this feature has not been requested yet.
Problem
I think it would be useful for avoiding a lot of repetition mainly when creating leaderboards.
Feature
I would like to see loop support for hologram lines. What I mean by that is being able to create loops for same lines where index variable could be used as placeholder. This would remove a lot of repetition when creating and editing leaderboard holograms.
If it's still not clear what I mean, this example should clarify that.
pages:
- lines:
- content: "TOP 10 RICHEST PLAYERS"
height: 0.3
loop:
range: 1-10
content: "{index}. %cmi_baltop_name_{index}% - %cmi_baltop_money_{index}%"
height: 0.3
Alternatives
Currently it is only possible to edit the hologram line by line.
I generally can't see a benefit here. Making leaderboards isn't too difficult to do, especially if you use commands where you can copy-paste it with smaller adjustments to add new lines.
Also, this seems like a highly specific thing and somewhat out-of-scope for a Holograms plugin here and more like something suited for a Leaderboard plugin itself (i.e. a feature to auto-generate a Hologram with a leaderboard).
I'd say I see a point but I don't think it's something worth to implement. I mean, for a programmer e.g., those are very few lines to code to get something like this easily done too.
I think Andre described it well. We will not add this, sorry.