Display tablist only for who have permission - montlikadani/TabList GitHub Wiki
In order to display the tablist header and footer with permission, it is necessary to use permissions
to display only to players who have permission.
Example
permissions:
1:
name: tablist.permission1
header: "This is a header"
footer:
- "&cFooter!"
- "&6TPS:&r %tps%"
5:
name: tablist.permission5
header: "&eThis is a header 5"
footer:
- "&6Footer 5"
In this example, which player has tablist.permission1
permission, those players will see the set of header and footer.
- The numbers used in the example above is the section name used to identify and load the values inside this section, can be anything (except special characters that YAML does not allow).
- Permission can be anything, but must contain a
.
(dot) character inside, since permissions only works with this separator, and make sure the permission doesn't already exist. - There is currently no limit to how many section keys you can create, but don't create unused keys that will only fill up your server's RAM and also increase your server's load time.
Specifying permission
By default operator players have all permissions granted, but they won't see these without the above permission. Operator players must have these permission specified if they want to see a specific/individual header/footer displayed (same applies to default players) otherwise they will see the default tablist.