mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-29 17:02:51 +00:00
Hiding display names (#2248) @AllTheMegahertz
Prevents a user's nickname from appearing if they are hidden, if `hide-displayname-in-vanish: true` in the config. Closes #2221. * Does not return display name if user is hidden * Added hide-displayname-in-vanish field * Added hideDisplayNameInVanish() * Changed to only hide display name if specified in config * Changed hideDisplayNameInVanish to default to false if not specified in config.yml
This commit is contained in:
parent
6a6383462d
commit
a18ce40921
4 changed files with 12 additions and 1 deletions
|
@ -1103,6 +1103,11 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
return config.getBoolean("ignore-colors-in-max-nick-length", false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hideDisplayNameInVanish() {
|
||||
return config.getBoolean("hide-displayname-in-vanish", false);
|
||||
}
|
||||
|
||||
private boolean allowSilentJoin;
|
||||
|
||||
public boolean _allowSilentJoinQuit() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue