Tanguygab / TAB-Additions

An addon for the TAB minecraft plugin with some more cool features :D
GNU General Public License v3.0
14 stars 4 forks source link

Hide nametags of players behind walls, blocks or structures... #28

Closed ga6rielsilva closed 1 year ago

ga6rielsilva commented 1 year ago

image

Tanguygab commented 1 year ago

too complex for me, I don't think I'll be able to add that anytime soon

ga6rielsilva commented 1 year ago

too complex for me, I don't think I'll be able to add that anytime soon

I was looking on SpigotMC and found this https://github.com/trevorzucker/NameHide, but it didn't work for me, what if you use his code as a base to create something similar? Would be interesting to have an suboption for nametag-in-range:... whitelist-world-nametag:, like

features:
  titles: false
  actionbars: false
  chat: false
  real-fake-players: false
  only-you: false
  nametag-in-range: 10
  whitelist-world-nametag: 
    - world
    - world2
  tablist-names-radius: 0
  sit-hide-nametag: true
  sneak-hide-nametags: true
  conditional-nametags: false
  conditional-appearance: false
  sit-hide-nametags: false
conditional-nametags:
  show-by-default: false
appearance-nametags:
  show-by-default: true
Tanguygab commented 1 year ago

I've seen that plugin as well in the past but never got the patience to see how it's done and implement it 🥲

ga6rielsilva commented 1 year ago

I've seen that plugin as well in the past but never got the patience to see how it's done and implement it 🥲

And about the world setting?

Tanguygab commented 1 year ago

you can use conditional-nametags to set a condition that checks the world, for example, go in TAB's config.yml, create a new condition:

conditions:
  nametag:
    conditions:
      - "%world%=world1"
      - "%world%=world2"
      - "%world%=world3"
    type: OR

and then go in group.yml and add

_DEFAULT_:
  nametag-condition: nametag
ga6rielsilva commented 1 year ago
nametag-condition: nametag

Could you send me this already configured? I really don't understand how to do it

Note: If possible, use a worldguard region as a parameter to hide the nametag

Tanguygab commented 1 year ago

I literally gave you everything configured, and told you in which file, and under which section to put it. The only things you have to change is the world names in the conditions

For worldguard, you do the same thing but with %worldguard_region_name% instead of %world%