File tree Expand file tree Collapse file tree
Essentials/src/main/java/com/earth2me/essentials Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ public interface ISettings extends IConf {
212212
213213 long getAutoAfkTimeout ();
214214
215- Set <String > getAfkTimeoutCommands ();
215+ List <String > getAfkTimeoutCommands ();
216216
217217 boolean getFreezeAfkPlayers ();
218218
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ public class Settings implements net.ess3.api.ISettings {
154154 private Tag secondaryColor = DEFAULT_SECONDARY_COLOR ;
155155 private Set <String > multiplierPerms ;
156156 private BigDecimal defaultMultiplier ;
157- private Set <String > afkTimeoutCommands = new HashSet <> ();
157+ private List <String > afkTimeoutCommands = Collections . emptyList ();
158158
159159 public Settings (final IEssentials ess ) {
160160 this .ess = ess ;
@@ -1278,16 +1278,12 @@ public long getAutoAfkTimeout() {
12781278 return config .getLong ("auto-afk-timeout" , config .getLong ("auto-afk-kick" , -1 ));
12791279 }
12801280
1281- private Set <String > _getAfkTimeoutCommands () {
1282- final Set <String > timeoutCommands = new HashSet <>();
1283- for (final String cmd : config .getList ("afk-timeout-commands" , String .class )) {
1284- timeoutCommands .add (cmd .toLowerCase (Locale .ENGLISH ));
1285- }
1286- return timeoutCommands ;
1281+ private List <String > _getAfkTimeoutCommands () {
1282+ return new ArrayList <>(config .getList ("afk-timeout-commands" , String .class ));
12871283 }
12881284
12891285 @ Override
1290- public Set <String > getAfkTimeoutCommands () {
1286+ public List <String > getAfkTimeoutCommands () {
12911287 return afkTimeoutCommands ;
12921288 }
12931289
You can’t perform that action at this time.
0 commit comments