mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-27 16:02:32 +00:00
Use separate config option for near radius.
We were using chat radius, which upset me when I wanted to change it but didn't want to start using local chat.
This commit is contained in:
parent
d6eb846488
commit
179dbe19fd
4 changed files with 15 additions and 3 deletions
|
@ -85,6 +85,11 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
return chatRadius;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getNearRadius() {
|
||||
return config.getInt("near-radius", 200);
|
||||
}
|
||||
|
||||
// #easteregg
|
||||
private char chatShout = '!';
|
||||
|
||||
|
@ -258,8 +263,8 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
|
||||
private Set<String> _getMuteCommands() {
|
||||
Set<String> muteCommands = new HashSet<String>();
|
||||
if(config.isList("mute-commands")) {
|
||||
for(String s : config.getStringList("mute-commands")) {
|
||||
if (config.isList("mute-commands")) {
|
||||
for (String s : config.getStringList("mute-commands")) {
|
||||
muteCommands.add(s.toLowerCase(Locale.ENGLISH));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue