Woodwalkers

Woodwalkers

506k Downloads

[Suggestion] WTHIT Support (Hide Playernames)

Peekofwar opened this issue ยท 3 comments

commented

What problem is this feature intended to solve?

The other day when I finally got my friend to connect to my modded server, we discovered that despite having playernames set to hidden for morphed players, my friend could see my player name on the WTHIT widget.

Describe the solution you'd like

If possible, it'd be nice if WTHIT would just display the name of the mob rather than the playername when morphed if playernames are set to hidden.

Have you considered any alternative solutions or features?

No response

Additional Context

https://modrinth.com/mod/wthit

commented

Have you tried blacklisting players in WTHIT? It is their intended way of solving such issues. You can do so by editing .minecraft/config/waila/blacklist.json, according to their wiki.
The entity type of players is minecraft:player.

commented

Have you tried blacklisting players in WTHIT? It is their intended way of solving such issues. You can do so by editing .minecraft/config/waila/blacklist.json, according to their wiki. The entity type of players is minecraft:player.

I assume disabling WTHIT for player entities will also prevent it from showing up entirely for disguised players, because a disguised player is still recognized as a player entity. If a player is paying attention, they will notice that the widget is suspiciously missing when looking at a specific entity. This would also give away a disguised player. This would be most noticable if the disguised player is near other entities.

commented

Alright, I will try to implement it asap, but I do not have time for coding for the next month due to exams.


(Note for myself: Implement https://docs.bai.lol/wthit/plugin/overrides/ similar to https://github.com/ToCraft/woodwalkers-mod/blob/main/common/src/main/java/dev/tocraft/walkers/integrations/impl/PlayerAbilityLibIntegration.java)