= Updated to mostly mitigate threading issue

This commit is contained in:
Matthew Cech
2019-06-30 00:42:08 -07:00
parent c4bc3e41d7
commit c837e2f190
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -101,6 +101,7 @@
"Localized Strings","CharacterEditURLNotAuth","You're not authorized to change that character! " "Localized Strings","CharacterEditURLNotAuth","You're not authorized to change that character! "
"Localized Strings","CharacterEditURLNotValid","That's not a valid url! " "Localized Strings","CharacterEditURLNotValid","That's not a valid url! "
"Localized Strings","CharacterEditURLSuccess","Successfully changed your reference! " "Localized Strings","CharacterEditURLSuccess","Successfully changed your reference! "
"Localized Strings","CharacterInfo",""
"Localized Strings","CharacterSearchInfo","Find a character with their name or Unique ID! `charactersearch name` or `charactersearch UniqueID`" "Localized Strings","CharacterSearchInfo","Find a character with their name or Unique ID! `charactersearch name` or `charactersearch UniqueID`"
"Localized Strings","CharacterSearchMultipleCharacter","%s is owned by %s. Unique ID is `%s`" "Localized Strings","CharacterSearchMultipleCharacter","%s is owned by %s. Unique ID is `%s`"
"Localized Strings","CharacterSearchMultipleCharacterHeader","I found a couple characters with that name, use `charactersearch UniqueID` with their Unique ID to find them!" "Localized Strings","CharacterSearchMultipleCharacterHeader","I found a couple characters with that name, use `charactersearch UniqueID` with their Unique ID to find them!"
1 Type Key Value
101 Localized Strings CharacterEditURLNotAuth You're not authorized to change that character!
102 Localized Strings CharacterEditURLNotValid That's not a valid url!
103 Localized Strings CharacterEditURLSuccess Successfully changed your reference!
104 Localized Strings CharacterInfo
105 Localized Strings CharacterSearchInfo Find a character with their name or Unique ID! `charactersearch name` or `charactersearch UniqueID`
106 Localized Strings CharacterSearchMultipleCharacter %s is owned by %s. Unique ID is `%s`
107 Localized Strings CharacterSearchMultipleCharacterHeader I found a couple characters with that name, use `charactersearch UniqueID` with their Unique ID to find them!
+4 -1
View File
@@ -66,7 +66,10 @@ public class Config
GlobalLog.log("File updated at " + monitoredFile.path); GlobalLog.log("File updated at " + monitoredFile.path);
buildConfigFile(monitoredFile.path.toString()); buildConfigFile(monitoredFile.path.toString());
// Re-register all commands now that we've updated the config // Re-register all commands now that we've updated the config.
// Before we do that tho, sync off anything that needs syncing.
// TODO: This is not thread safe.
DatabaseManager.instance.upkeep();
CommandManager.instance.registerAllCommands(); CommandManager.instance.registerAllCommands();
}); });
} }