mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-26 10:01:49 +01:00
Adjust section matching.
This commit is contained in:
parent
a1c88a140e
commit
226a75472c
@ -237,29 +237,31 @@ public class Settings implements ISettings
|
|||||||
}
|
}
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Set<String> socialSpyCommands = new HashSet<String>();
|
private Set<String> socialSpyCommands = new HashSet<String>();
|
||||||
|
|
||||||
public Set<String> _getSocialSpyCommands()
|
public Set<String> _getSocialSpyCommands()
|
||||||
{
|
{
|
||||||
Set<String> socialspyCommands = new HashSet<String>();
|
Set<String> socialspyCommands = new HashSet<String>();
|
||||||
|
|
||||||
if (!config.hasProperty("socialspy-commands")) {
|
if (config.isConfigurationSection("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"))
|
for (String c : config.getStringList("socialspy-commands"))
|
||||||
{
|
{
|
||||||
socialspyCommands.add(c.toLowerCase(Locale.ENGLISH));
|
socialspyCommands.add(c.toLowerCase(Locale.ENGLISH));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
socialspyCommands.addAll(Arrays.asList("msg", "r", "mail", "m", "whisper", "emsg", "t", "tell", "er", "reply", "ereply", "email", "action", "describe", "eme", "eaction", "edescribe", "etell", "ewhisper", "pm"));
|
||||||
|
}
|
||||||
|
|
||||||
return socialspyCommands;
|
return socialspyCommands;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Set<String> getSocialSpyCommands() {
|
public Set<String> getSocialSpyCommands()
|
||||||
|
{
|
||||||
return socialSpyCommands;
|
return socialSpyCommands;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String nicknamePrefix = "~";
|
private String nicknamePrefix = "~";
|
||||||
|
|
||||||
private String _getNicknamePrefix()
|
private String _getNicknamePrefix()
|
||||||
|
Loading…
Reference in New Issue
Block a user