[issue/note-commands] review changes
This commit is contained in:
parent
f295c028d4
commit
ef8212b81e
@ -205,6 +205,8 @@ public class NoteCommands {
|
|||||||
|
|
||||||
note.ModifyNote(value, newNote, epochTime, storyChapter, storyPart);
|
note.ModifyNote(value, newNote, epochTime, storyChapter, storyPart);
|
||||||
|
|
||||||
|
ChatUtil.SendPlayerMsg(player, "Modified note entry. View notes any time with /notegui");
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,6 +55,7 @@ public class PlayerNote {
|
|||||||
/// @brief This is the notebook
|
/// @brief This is the notebook
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
public class NoteFile {
|
public class NoteFile {
|
||||||
|
// the uuid is the name of the file written to disk
|
||||||
String uuid;
|
String uuid;
|
||||||
public HashMap<Integer, NoteMetadata> noteMap = new HashMap<Integer, NoteMetadata>();
|
public HashMap<Integer, NoteMetadata> noteMap = new HashMap<Integer, NoteMetadata>();
|
||||||
}
|
}
|
||||||
@ -230,7 +231,7 @@ public class PlayerNote {
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
public void FlashConfig() {
|
public void FlashConfig() {
|
||||||
try {
|
try {
|
||||||
config.WriteToJsonFile("notes/" + thisNote.uuid.toString() + ".json", thisNote);
|
config.WriteToJsonFile("notes/" + thisNote.uuid + ".json", thisNote);
|
||||||
} catch (FILE_WRITE_EXCEPTION e) {
|
} catch (FILE_WRITE_EXCEPTION e) {
|
||||||
System.out.println(ChatUtil.ColoredString("Could not flash notes configuration file", CONSOLE_COLOR.RED));
|
System.out.println(ChatUtil.ColoredString("Could not flash notes configuration file", CONSOLE_COLOR.RED));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user