= Core subsystem formatting update
This commit is contained in:
@@ -35,15 +35,15 @@ public class CommandEnabler extends BaseKeyValueFile
|
||||
keyList = new ArrayList<>();
|
||||
|
||||
// Startup
|
||||
ReadIn();
|
||||
GetTrackedCommands();
|
||||
WriteOut();
|
||||
readIn();
|
||||
getTrackedCommands();
|
||||
writeOut();
|
||||
}
|
||||
|
||||
// Reads in the config file and parses it, keeping tabs on the order it read things
|
||||
private void ReadIn()
|
||||
private void readIn()
|
||||
{
|
||||
Parse((pair) ->{
|
||||
parse((pair) ->{
|
||||
String key = pair.First;
|
||||
String value = pair.Second;
|
||||
|
||||
@@ -58,9 +58,9 @@ public class CommandEnabler extends BaseKeyValueFile
|
||||
|
||||
// Look up the already scraped values from the localizer and store them if they
|
||||
// don't already exist in the lookup. Defaults to defaultEnabledState.
|
||||
private void GetTrackedCommands()
|
||||
private void getTrackedCommands()
|
||||
{
|
||||
ArrayList<String> unloc = LocCommands.GetUnlocalizedCommands();
|
||||
ArrayList<String> unloc = LocCommands.getUnlocalizedCommands();
|
||||
|
||||
for(int i = 0; i < unloc.size(); ++i)
|
||||
{
|
||||
@@ -75,7 +75,7 @@ public class CommandEnabler extends BaseKeyValueFile
|
||||
}
|
||||
|
||||
// Write out enabled/disabled file info.
|
||||
private void WriteOut()
|
||||
private void writeOut()
|
||||
{
|
||||
List<Pair<String, String>> list = new Vector<Pair<String, String>>();
|
||||
|
||||
@@ -92,11 +92,11 @@ public class CommandEnabler extends BaseKeyValueFile
|
||||
|
||||
Collections.sort(list, (c1, c2) -> { return c1.First.compareTo(c2.First); });
|
||||
|
||||
Write(list);
|
||||
write(list);
|
||||
}
|
||||
|
||||
// Looks up a key to see if it's enabled or not
|
||||
public boolean IsEnabled(String key)
|
||||
public boolean isEnabled(String key)
|
||||
{
|
||||
String toCheck = key.toLowerCase();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user