mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
FallBack for missing config property
This commit is contained in:
parent
0e2e8e16af
commit
2c3218b056
1 changed files with 5 additions and 0 deletions
|
@ -243,6 +243,11 @@ public class Settings implements ISettings
|
|||
public Set<String> _getSocialSpyCommands()
|
||||
{
|
||||
Set<String> socialspyCommands = new HashSet<String>();
|
||||
|
||||
if (!config.hasProperty("socialspy-commands")) {
|
||||
socialspyCommands.addAll(Arrays.asList("msg", "r", "mail", "m", "whisper", "emsg", "t", "tell", "er", "reply", "ereply", "email", "action", "describe", "eme", "eaction", "edescribe", "etell", "ewhisper", "pm"));
|
||||
}
|
||||
|
||||
for (String c : config.getStringList("socialspy-commands"))
|
||||
{
|
||||
socialspyCommands.add(c.toLowerCase(Locale.ENGLISH));
|
||||
|
|
Loading…
Reference in a new issue