mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-15 18:24:05 +00:00
Add config option to disable message social spy (#3910)
Adds a config option to allow to prevent socialspy from reading private messages. Useful if all you want from social spy is to read commands defined in the list. Closes #1095.
This commit is contained in:
parent
cb168b0c8a
commit
500edb7860
4 changed files with 28 additions and 15 deletions
|
@ -379,6 +379,11 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
return config.getBoolean("socialspy-listen-muted-players", true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSocialSpyMessages() {
|
||||
return config.getBoolean("socialspy-messages", true);
|
||||
}
|
||||
|
||||
private Set<String> _getMuteCommands() {
|
||||
final Set<String> muteCommands = new HashSet<>();
|
||||
if (config.isList("mute-commands")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue