BungeeTabListPlus icon indicating copy to clipboard operation
BungeeTabListPlus copied to clipboard

Support for inheritance

Open amadeusmz opened this issue 4 years ago • 3 comments

This will be useful for servers that have multiple tablists. For instance, tablist B will inherit all options of tablist A, with some different customisable options like showTo, playerSets...

amadeusmz avatar Aug 07 '21 13:08 amadeusmz

What stuff would it "Inherit"?

Like the major ones such as placeholder can already be "inherited" by making them in the config.yml of the plugin.

Andre601 avatar Aug 07 '21 13:08 Andre601

Stuff like header, footer, playerSets,...? Currently I have to declare the same header, footer, playerSets in multiple tabList. When I want to change it, I have to edit all related config files. The point is I want it stored in one file only, let's call it master tablist When I create tablist A and declare it is "inherited" from tablist master and nothing else in it's config file, A is now basically the same as master. Now I want to custom some of A's component, like... the 4th column is different, and the rest of the A is "inherited" from master

amadeusmz avatar Aug 07 '21 16:08 amadeusmz

I think a system similar to customPlaceholders where you can define them in the main config would be a good aproach.

Andre601 avatar Aug 07 '21 16:08 Andre601