= Cleaned up warnings and added config header

This commit is contained in:
Matthew Cech committed 2019-05-24 01:46:51 -07:00
1 parent 5dd8821d51
commit 25c3327651
3 files changed
+6 -2

No files matched your search

+5
View File
@@ -18,6 +18,7 @@ import utils.LogFilter;
public class CommandEnabler
{
// Config/const variables
public static final String header = "[CommandEnabler]"; // For consistency in files
public static final String filename = "commands.config";
public static final String pairSplit = "=";
public static final char pairSeparator = '\n';
@@ -51,6 +52,9 @@ public class CommandEnabler
for(int i = 0; i < lines.length; ++i)
{
if(lines[i].contains(header))
continue;
String[] pair = lines[i].split(pairSplit);
if(pair.length < 2)
@@ -92,6 +96,7 @@ public class CommandEnabler
try
{
String outString = "";
outString += header + pairSeparator;
for(int i = 0; i < keyList.size(); ++i)
{
String key = keyList.get(i);