Animated-TabList

Animated-TabList

65.2k Downloads

is there any way to set groups per world?

ventoryprod opened this issue ยท 5 comments

commented

Hi,
I wanted to change the prefix (color) of the player when he enters another world, and so that everyone could see it, but I didn't understand how to do it. Is it possible to do it at all, and if so, how?

commented

The only way that come into my mind is to create a different group with a specified permission and giving this permission to the player whose world has been changed.

commented

In LuckPerms possible with context https://luckperms.net/wiki/Context

commented

I tried to do it, but it seems to me that I'm stupid enough and I don't understand how to do it.

commented

Hello again.
In TabList's groups.yml file create multiple groups like this, in each one change what you want (prefix, suffix) and the permission, which will define what world this will be displayed in. We'll create it for group Developer in this example.

groups:
  developer-world:
    prefix: '&aDEVELOPER '
    tabname: ''
    suffix: ''
    permission: tablist.g.developer-world
  developer-nether:
    prefix: '&cDEVELOPER '
    tabname: ''
    suffix: ''
    permission: tablist.g.developer-nether
  developer-end:
    prefix: '&dDEVELOPER '
    tabname: ''
    suffix: ''
    permission: tablist.g.developer-end

Then in LuckPerms Developer group add those permissions like this, with the context of whatever world name you want.
image

In case the player in this group is opped, just add this with value false
image

Now the prefix for players in Developer group will change depending on what world they're in. Good luck!

commented

I definitely should have guessed it earlier, everything worked out, thanks!