[issue/note-commands] review changes

This commit is contained in:
Jkibbels 2024-08-24 22:27:48 -04:00
parent f295c028d4
commit ef8212b81e
2 changed files with 4 additions and 1 deletions

View File

@ -205,6 +205,8 @@ public class NoteCommands {
note.ModifyNote(value, newNote, epochTime, storyChapter, storyPart);
ChatUtil.SendPlayerMsg(player, "Modified note entry. View notes any time with /notegui");
ret = 0;
}

View File

@ -55,6 +55,7 @@ public class PlayerNote {
/// @brief This is the notebook
/////////////////////////////////////////////////////////////////////////////
public class NoteFile {
// the uuid is the name of the file written to disk
String uuid;
public HashMap<Integer, NoteMetadata> noteMap = new HashMap<Integer, NoteMetadata>();
}
@ -230,7 +231,7 @@ public class PlayerNote {
/////////////////////////////////////////////////////////////////////////////
public void FlashConfig() {
try {
config.WriteToJsonFile("notes/" + thisNote.uuid.toString() + ".json", thisNote);
config.WriteToJsonFile("notes/" + thisNote.uuid + ".json", thisNote);
} catch (FILE_WRITE_EXCEPTION e) {
System.out.println(ChatUtil.ColoredString("Could not flash notes configuration file", CONSOLE_COLOR.RED));
}